Skip to content

Commit

Permalink
Automate pull-requests for resource updates (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Apr 13, 2024
1 parent 035f6bf commit 4b0fa15
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: cron
on:
workflow_dispatch: null
schedule:
- cron: 0 0 * * 0

permissions:
contents: write
pull-requests: write

jobs:
check-unicode-alias-update:
name: check-unicode-alias-update
update-unicode-alias:
name: update-unicode-alias
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -18,7 +23,9 @@ jobs:
run: npm run update:unicode-alias
- name: Format
run: npm run eslint-fix
- name: Check changes
run: |
git add --all && \
git diff-index --cached HEAD --stat --exit-code
- uses: peter-evans/create-pull-request@v6
with:
commit-message: Updates unicode property alias resource with latest
branch: update-unicode-alias
branch-suffix: timestamp
title: Updates unicode property alias resource with latest

0 comments on commit 4b0fa15

Please sign in to comment.