2021-11-02 03:35:25 +00:00
|
|
|
name: 🏭 Update Controller Database
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 16 * * 1" # every monday @ 12pm EST - https://crontab.guru/#0_16_*_*_1
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update-controller-db:
|
|
|
|
if: github.repository == 'PCSX2/pcsx2'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-11 04:33:40 +00:00
|
|
|
- uses: actions/checkout@v4
|
2021-11-02 03:35:25 +00:00
|
|
|
|
|
|
|
- name: Get Latest DB and Prepare DB File
|
|
|
|
run: |
|
|
|
|
cd .github/workflows/scripts/controller-db/
|
|
|
|
wget -O game_controller_db.txt https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt
|
|
|
|
python ./update-db.py
|
2021-12-28 05:25:49 +00:00
|
|
|
mv ./game_controller_db.txt ${{github.workspace}}/bin/resources/game_controller_db.txt
|
2021-11-02 03:35:25 +00:00
|
|
|
|
|
|
|
- name: Create Pull Request
|
2024-03-24 16:45:58 +00:00
|
|
|
uses: peter-evans/create-pull-request@v6
|
2021-11-02 03:35:25 +00:00
|
|
|
with:
|
2022-02-24 13:52:41 +00:00
|
|
|
title: "PAD: Update to latest controller database"
|
|
|
|
commit-message: "PAD: Update to latest controller database."
|
2021-11-02 03:35:25 +00:00
|
|
|
committer: "PCSX2 Bot <PCSX2Bot@users.noreply.github.com>"
|
|
|
|
author: "PCSX2 Bot <PCSX2Bot@users.noreply.github.com>"
|
2022-02-24 13:52:41 +00:00
|
|
|
body: "Weekly automatic update of SDL Controller DB"
|
2021-11-02 03:35:25 +00:00
|
|
|
reviewers: lightningterror
|