Skip to content

Update Compatibility Data #122

Update Compatibility Data

Update Compatibility Data #122

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