-
-
Notifications
You must be signed in to change notification settings - Fork 20
38 lines (31 loc) · 1.26 KB
/
update-compat.yaml
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
name: Update Compatibility Data
on:
schedule:
- cron: "0 16 * * 1" # every monday @ 12pm EST - https://crontab.guru/#0_16_*_*_1
jobs:
update-compat:
if: github.repository == 'PCSX2/pcsx2-net-www' # Don't make these PRs on people's forks
name: Update Compatibility Data
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download Latest
run: wget -O data.json https://forums.pcsx2.net/data/data.json
- name: Coerce Data
run: python ./scripts/coerce-compat-data.py
- name: Update Files
run: |
mv -f ./data-new.json ./static/compat/data.json
mv -f ./data-new.min.json ./static/compat/data.min.json
- name: Cleanup
run: rm ./data.json
# TODO - consider direct committing this once we have confidence
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
title: "Compat Data: Update compatibility data"
commit-message: "compat: Update to latest compatibility data"
committer: "PCSX2 Bot <[email protected]>"
author: "PCSX2 Bot <[email protected]>"
body: "Weekly automatic update of Compatibility Data"
reviewers: xTVaser