content(catalogue): Add His Three Daughters [auto] #340
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update catalogue data | |
env: | |
IGDB_API_KEY: ${{ secrets.IGDB_KEY }} | |
IGDB_CLIENT_ID: ${{ secrets.IGDB_CLIENT }} | |
TMDB_API_KEY: ${{ secrets.TMDB_KEY }} | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
if: ${{ contains(github.event.head_commit.message, 'content(catalogue):') }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "latest" | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Update catalogue data | |
env: | |
IGDB_KEY: ${{ secrets.IGDB_KEY }} | |
IGDB_CLIENT: ${{ secrets.IGDB_CLIENT }} | |
TMDB_KEY: ${{ secrets.TMDB_KEY }} | |
run: pnpm run update-data | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "[ci] update catalogue data" | |
branch: ${{ github.head_ref }} |