-
-
Notifications
You must be signed in to change notification settings - Fork 797
30 lines (29 loc) · 887 Bytes
/
update-dependencies.yml
File metadata and controls
30 lines (29 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Update dependencies
on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:
jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '18.x'
- run: npm ci
- run: |
git config user.name "GitHub Actions Bot"
git config user.email "hello@feathersjs.com"
git checkout -b update-dependencies-$GITHUB_RUN_ID
- run: |
npm run update-dependencies
npm install
- run: |
git commit -am "chore(dependencies): Update dependencies"
git push origin update-dependencies-$GITHUB_RUN_ID
- run: |
gh pr create --title "chore(dependencies): Update all dependencies" --body ""
env:
GITHUB_TOKEN: ${{secrets.CI_ACCESS_TOKEN}}