diff --git a/.github/workflows/static-code-analysis.yml b/.github/workflows/static-code-analysis.yml index 0314a5996e327..4aa2e1f9b6995 100644 --- a/.github/workflows/static-code-analysis.yml +++ b/.github/workflows/static-code-analysis.yml @@ -36,7 +36,7 @@ jobs: - name: Show potential changes in Psalm baseline if: always() - run: git diff -- . ':!lib/composer' + run: git diff --exit-code -- . ':!lib/composer' - name: Upload Analysis results to GitHub if: always() @@ -98,4 +98,4 @@ jobs: - name: Show potential changes in Psalm baseline if: always() - run: git diff -- . ':!lib/composer' + run: git diff --exit-code -- . ':!lib/composer'