@n42/cli 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,7 @@ name: Dependency audit (informational)
2
2
 
3
3
  on:
4
4
  schedule:
5
+ # 14:30 UTC every Wednesday (3)
5
6
  - cron: '30 14 * * 3'
6
7
  workflow_dispatch:
7
8
 
@@ -20,10 +21,11 @@ jobs:
20
21
  - run: npm install
21
22
 
22
23
  - name: Run npm audit
23
- run: npm audit --omit=dev --audit-level=critical
24
+ run: |
25
+ npm audit --omit=dev --audit-level=critical > audit.txt 2>&1 || echo "AUDIT_FAILED=true" >> $GITHUB_ENV
24
26
 
25
27
  - name: Slack notify on audit failure
26
- if: failure()
28
+ if: env.AUDIT_FAILED == 'true'
27
29
  uses: rtCamp/action-slack-notify@v2
28
30
  env:
29
31
  SLACK_WEBHOOK: ${{ secrets.ALERT_SLACK_GITHUB_ACTIONS }}