diff --git a/.github/workflows/npm_audit.yml b/.github/workflows/npm_audit.yml index f1db12f56..54c69e487 100644 --- a/.github/workflows/npm_audit.yml +++ b/.github/workflows/npm_audit.yml @@ -37,11 +37,11 @@ jobs: # The npm audit command will exit with a 0 exit code if no vulnerabilities were found. if [ $? -eq 0 ]; then create_pr=false; else create_pr=true; fi; - echo "should_create_pr=${create_pr}" >> $GITHUB_ENV + echo "should_create_pr=${create_pr}" >> $GITHUB_OUTPUT - name: Run npm audit fix - if: steps.npm_audit.outputs.should_create_pr == 'true' - run: npm audit fix --package-lock-only --loglevel=error; + run: | + echo "debugging the value of should_create_pr: ${steps.npm_audit.outputs.should_create_pr}"; - name: Create Pull Request if: steps.npm_audit.outputs.should_create_pr == 'true'