diff --git a/.github/workflows/typing_conformance_comment.yaml b/.github/workflows/typing_conformance_comment.yaml index 359fb387e9..f596507448 100644 --- a/.github/workflows/typing_conformance_comment.yaml +++ b/.github/workflows/typing_conformance_comment.yaml @@ -40,14 +40,6 @@ jobs: if_no_artifact_found: ignore allow_forks: true - - name: Parse conformance suite commit - id: conformance-suite-commit - run: | - if [[ -f conformance-suite-commit ]] - then - echo "CONFORMANCE_SUITE_COMMIT=$(> "$GITHUB_OUTPUT" - fi - - uses: dawidd6/action-download-artifact@20319c5641d495c8a52e688b7dc5fada6c3a9fbc # v8 name: "Download typing_conformance results" id: download-typing_conformance_diff @@ -77,7 +69,14 @@ jobs: # subsequent runs echo '' >> comment.txt - echo "## Diagnostic diff on [typing conformance tests](https://github.com/python/typing/tree/${CONFORMANCE_SUITE_COMMIT}/conformance)" >> comment.txt + if [[ -f conformance-suite-commit ]] + then + echo "## Diagnostic diff on [typing conformance tests](https://github.com/python/typing/tree/$(> comment.txt + else + echo "conformance-suite-commit file not found" + echo "## Diagnostic diff on typing conformance tests" >> comment.txt + fi + if [ -s "pr/typing_conformance_diagnostics_diff/typing_conformance_diagnostics.diff" ]; then echo '
' >> comment.txt echo 'Changes were detected when running ty on typing conformance tests' >> comment.txt