Skip to content

Commit 2470fe4

Browse files
authored
chore(dependencies): Add improved dependency update action (#2347)
1 parent 9f67703 commit 2470fe4

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Update dependencies
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 1 * *'
6+
workflow_dispatch:
7+
jobs:
8+
update-dependencies:
9+
runs-on: ubuntu-latest
10+
steps:
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 "hello@feathersjs.com"
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+

0 commit comments

Comments
 (0)