Skip to content

Commit 4ce91c7

Browse files
authored
Auto create pull request when data is updated (#223)
1 parent 7f3b089 commit 4ce91c7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/update.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Update
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# “At 00:00 on Sunday.” https://crontab.guru/#0_0_*_*_0
7+
- cron: "0 0 * * 0"
8+
9+
jobs:
10+
update:
11+
if: github.event_name != 'schedule' || github.repository == 'sindresorhus/globals'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
check-latest: true
18+
node-version: latest
19+
- run: npm install
20+
- run: npm run update
21+
- uses: peter-evans/create-pull-request@v6
22+
with:
23+
commit-message: Update
24+
branch: automated-update
25+
branch-suffix: timestamp
26+
title: Update

0 commit comments

Comments
 (0)