This repository has been archived on 2025-06-27. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ludusavi-manifest/.github/workflows/import.yaml
2022-11-02 18:02:15 +08:00

31 lines
784 B
YAML

on:
# schedule:
# - cron: '0 */6 * * *'
workflow_dispatch: ~
name: Import
jobs:
recent:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v3
with:
node-version: '16'
- uses: actions/cache@v3
with:
path: data/wiki-meta-cache.yaml
key: wiki-meta-cache-v2-${{ github.run_id }}
restore-keys: |
wiki-meta-cache-v2
- run: |
npm install
npm run recent
npm run schema
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Import recent changes from PCGamingWiki
commit_author: GitHub Actions <actions@github.com>