Skip to content

Commit

Permalink
UHF-9380: Debugging...
Browse files Browse the repository at this point in the history
  • Loading branch information
khalima committed Jan 24, 2024
1 parent 6223a7f commit 4d31be1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/npm_audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,9 @@ jobs:
npm audit --package-lock-only --loglevel=error;
# The npm audit command will exit with a 0 exit code if no vulnerabilities were found.
if [ $? -eq 0 ]; then echo "CREATE_PR=false" >> $GITHUB_OUTPUT; echo "Variable should be 0: $?"; else echo "CREATE_PR=true" >> $GITHUB_OUTPUT; echo "Variable should be 1: $?"; fi;
if [ $? -eq 0 ]; then echo "CREATE_PR=false" >> $GITHUB_OUTPUT; else echo "CREATE_PR=true" >> $GITHUB_OUTPUT; fi;
set -e
- name: Debugging the variable
run: echo "The variable is ${{ steps.npm_audit.outputs.CREATE_PR }}"

- name: Run npm audit fix
if: steps.npm_audit.outputs.CREATE_PR == 'true'
run: npm audit fix --package-lock-only --loglevel=error;
Expand Down

0 comments on commit 4d31be1

Please sign in to comment.