-
-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (35 loc) · 1.04 KB
/
update.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
name: update
on:
schedule:
- cron: '0 1 * * 1'
jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Set node
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: pnpm
- run: corepack enable
- name: update script
run: pnpm run up
- name: Commit and push if changes are made
run: |
git config --global user.email "[email protected]"
git config --global user.name "FliPPeDround"
git add -A
git commit -m "chore: update deps" || echo "No changes to commit"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.MY_GITHUB_TOKEN }}
commit-message: 'chore: update deps'
title: 'chore: update deps'
body: Update dependencies
branch: chore/update-deps
delete-branch: true
base: main