ludusavi-manifest/.github/workflows/import.yaml

35 lines
1 KiB
YAML

on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch: ~
name: Import
jobs:
recent:
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: https://ghcr.io/dtolnay/rust-toolchain@stable
- uses: https://ghcr.io/Swatinem/rust-cache@v2
- uses: actions/cache@v4
with:
path: data/wiki-meta-cache.yaml
key: wiki-meta-cache-v2-${{ github.run_id }}
restore-keys: |
wiki-meta-cache-v2
- name: Python dependencies
run: pip install "steam[client]"
- run: cargo build
- run: cargo run -- bulk --recent-changes
- uses: https://ghcr.io/stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Import recent changes from PCGamingWiki
commit_author: Forgejo Actions <actions@git.conorstayt.dev>