File tree Expand file tree Collapse file tree 1 file changed +27
-19
lines changed Expand file tree Collapse file tree 1 file changed +27
-19
lines changed Original file line number Diff line number Diff line change 1
- on :
1
+ name : Update dependencies
2
+
3
+ on :
2
4
schedule :
3
- - cron : ' 0 0 * * 1 '
4
- name : Update packages
5
+ - cron : ' 0 0 1 * * '
6
+ workflow_dispatch :
5
7
jobs :
6
- release :
7
- name : Update npm packages
8
+ update-dependencies :
8
9
runs-on : ubuntu-latest
9
10
steps :
10
- - name : Update npm packages
11
- uses :
technote-space/[email protected]
12
- with :
13
- EXECUTE_COMMANDS : |
14
- npm install
15
- npm run update-dependencies
16
- npm run clean
17
- npm install
18
- npm test
19
- COMMIT_MESSAGE : ' chore(dependencies): Update all dependencies'
20
- COMMIT_NAME : ' GitHub Actions'
21
-
22
- PR_BRANCH_NAME : ' chore-npm-update-${PR_ID}'
23
- PR_TITLE : ' chore(dependencies): Update all dependencies'
11
+ - uses : actions/checkout@v2
12
+ - name : Use Node.js
13
+ uses : actions/setup-node@v1
14
+ with :
15
+ node-version : ' 15.x'
16
+ - run : npm ci
17
+ - run : |
18
+ git config user.name "GitHub Actions Bot"
19
+ git config user.email "[email protected] "
20
+ git checkout -b update-dependencies-$GITHUB_RUN_ID
21
+ - run : |
22
+ npm run update-dependencies
23
+ npm install
24
+ - run : |
25
+ git commit -am "chore(dependencies): Update dependencies"
26
+ git push origin update-dependencies-$GITHUB_RUN_ID
27
+ - run : |
28
+ gh pr create --title "chore(dependencies): Update all dependencies" --body ""
29
+ env:
30
+ GITHUB_TOKEN: ${{secrets.CI_ACCESS_TOKEN}}
31
+
You can’t perform that action at this time.
0 commit comments