-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (40 loc) · 1.15 KB
/
update-data.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 }}