Skip to content

Commit

Permalink
Update npm-audit.yml
Browse files Browse the repository at this point in the history
run the audit output step even if previous step failed
  • Loading branch information
shazron authored Apr 10, 2023
1 parent 652fa8f commit ab37f92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/npm-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
npm audit --audit-level=high --json > auditoutput.txt
- id: runaudit
name: if audit had failed, run npm audit without json flag so we can see what is failing
if: steps.createandaudit.outcome != 'success'
if: failure() && steps.createandaudit.outcome != 'success'
run: |
cd testapp
npm audit
Expand Down

0 comments on commit ab37f92

Please sign in to comment.