Skip to content

Commit

Permalink
Auto create pull request when data is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Feb 20, 2024
1 parent 5e64c36 commit 907014f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Update

on:
workflow_dispatch:
schedule:
# “At 00:00 on Sunday.” https://crontab.guru/#0_0_*_*_0
- cron: "0 0 * * 0"

jobs:
update:
if: github.event_name != 'schedule' || github.repository == 'sindresorhus/globals'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
check-latest: true
node-version: latest
- run: npm install
- run: npm run update
- uses: peter-evans/create-pull-request@v6
with:
commit-message: Update
branch: automated-update
branch-suffix: timestamp
title: Update

0 comments on commit 907014f

Please sign in to comment.