Skip to content

Commit 4b0fa15

Browse files
authored
Automate pull-requests for resource updates (#732)
1 parent 035f6bf commit 4b0fa15

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/cron.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
name: cron
22
on:
3+
workflow_dispatch: null
34
schedule:
45
- cron: 0 0 * * 0
56

7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
611
jobs:
7-
check-unicode-alias-update:
8-
name: check-unicode-alias-update
12+
update-unicode-alias:
13+
name: update-unicode-alias
914
runs-on: ubuntu-latest
1015
steps:
1116
- name: Checkout
@@ -18,7 +23,9 @@ jobs:
1823
run: npm run update:unicode-alias
1924
- name: Format
2025
run: npm run eslint-fix
21-
- name: Check changes
22-
run: |
23-
git add --all && \
24-
git diff-index --cached HEAD --stat --exit-code
26+
- uses: peter-evans/create-pull-request@v6
27+
with:
28+
commit-message: Updates unicode property alias resource with latest
29+
branch: update-unicode-alias
30+
branch-suffix: timestamp
31+
title: Updates unicode property alias resource with latest

0 commit comments

Comments
 (0)