#2: Add scheduled job for importing recent changes
This commit is contained in:
parent
d7d28210da
commit
0ef460e7c1
1 changed files with 23 additions and 0 deletions
23
.github/workflows/import.yaml
vendored
Normal file
23
.github/workflows/import.yaml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
name: Import
|
||||
|
||||
jobs:
|
||||
recent:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '10'
|
||||
- run: |
|
||||
npm install
|
||||
npm run recent
|
||||
npm run schema
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: Import recent changes from PCGamingWiki
|
Loading…
Add table
Add a link
Reference in a new issue