Skip to content

Commit f2a24a1

Browse files
committed
feat: Add auto-pr cron job
1 parent 4798f99 commit f2a24a1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/auto-pr.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Auto PR for new versions
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * *
6+
7+
jobs:
8+
update:
9+
strategy:
10+
matrix:
11+
version:
12+
- 10
13+
- 12
14+
- 14
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Update composer packages
18+
uses: technote-space/create-pr-action@v2
19+
with:
20+
EXECUTE_COMMANDS: |
21+
./update.sh ${{ matrix.version }}
22+
COMMIT_MESSAGE: 'chore: update ${{ matrix.version }}'
23+
COMMIT_NAME: 'Node.js GitHub Bot'
24+
COMMIT_EMAIL: '[email protected]'
25+
PR_BRANCH_NAME: 'chore-update-${{ matrix.version }}'
26+
PR_TITLE: 'chore: update ${{ matrix.version }}'

0 commit comments

Comments
 (0)