diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index c5d9f3f5..fc37f50c 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -19,15 +19,8 @@ jobs: cache: 'pip' # caching pip dependencies - run: pip install black==23.12.1 - - name: Run black and block if exit code is failure - run: | - black . || exit_code=$? # capture exit code - - # If black exits with a non-zero exit code (failure according to docs), exit with the same code - if [ "${exit_code:-0}" -ne 0 ]; then - echo "Black failed with exit code ${exit_code}. Could not finish formatting (code may be invalid)." - exit ${exit_code} - fi + - name: Run black + run: black . # if this fails nothing else will run, this is correct behavior - name: Suggest changes via comment uses: parkerbxyz/suggest-changes@v1