Skip to content

Commit d557740

Browse files
authored
Merge pull request #915 from hydephp/refactor-psalm-action
Internal: Fix Psalm action
2 parents 274a172 + 2fc8020 commit d557740

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/static-analysis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ jobs:
2121

2222
- name: Run Psalm
2323
id: analysis
24-
run: |
25-
vendor/bin/psalm
26-
echo EXIT_CODE=$? >> $GITHUB_OUTPUT
27-
exit 0;
24+
run: vendor/bin/psalm || echo EXIT_CODE=$? >> $GITHUB_OUTPUT || exit 0
2825

2926

3027
# Since GitHub Actions for some reason doesn't support exiting with warnings, we work around this by
@@ -36,4 +33,4 @@ jobs:
3633
if: needs.psalm.outputs.exit-code == 0
3734
steps:
3835
- name: Report analysis passed
39-
run: exit 0;
36+
run: echo "Got code ${{ needs.psalm.outputs.exit-code }}" && exit 0;

0 commit comments

Comments
 (0)