File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: autorun-npm-audit-fix
22run-name : Automatically run npm audit fix
33on :
44 schedule :
5- - cron : ' 45 05 1 * *'
6- - cron : ' 30 23 18 AUG *'
5+ - cron : ' 45 08 1 * *' # Run at 1:45 AM PDT on the 1st of every month
6+ - cron : ' 30 18 19 AUG *' # TEST Run at 11:30 AM PDT on August 19
77jobs :
88 autorun-npm-audit-fix :
99 runs-on : ubuntu-latest
2020 uses : actions/setup-node@v4
2121 with :
2222 node-version : ' 18'
23- - name : Run npm audit fix
24- run : |
25- echo "Running npm audit fix"
26- npm audit fix
2723 - name : Get whether autorun-npm-audit-fix branch exists
2824 run : |
2925 echo "Getting whether autorun-npm-audit-fix branch exists"
@@ -40,13 +36,17 @@ jobs:
4036 run : |
4137 echo "Deleting remote autorun-npm-audit-fix branch"
4238 git push origin --delete autorun-npm-audit-fix
39+ - name : Run npm audit fix
40+ run : |
41+ echo "Running npm audit fix (breaking changes will need to be addressed manually)"
42+ npm audit fix || true
4343 - name : Add any changes
4444 run : |
4545 echo "Determining if there are any changes"
4646 git config user.name github-actions
4747 git config user.email github-actions@github.com
4848 git checkout -b autorun-npm-audit-fix
49- git add ../.
49+ git add .
5050 - name : Run git status
5151 run : |
5252 {
You can’t perform that action at this time.
0 commit comments