Gamecontrolledb merge #805
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: Gamecontrolledb merge | |
on: | |
push: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
gcdb-assemble: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Main | |
uses: actions/checkout@v2 | |
with: | |
path: main | |
- name: Download gamecontrollerdb.txt | |
run: | | |
curl https://raw.githubusercontent.com/mdqinc/SDL_GameControllerDB/master/gamecontrollerdb.txt -o gamecontrollerdb_sdl.txt | |
- name: Merge gamecontrollerdb | |
run: | | |
cat ./main/gamecontrollerdb_header.txt > ./main/gamecontrollerdb.txt | |
grep "platform:Linux" gamecontrollerdb_sdl.txt >> ./main/gamecontrollerdb.txt | |
cat ./main/gamecontrollerdb_mister.txt >> ./main/gamecontrollerdb.txt | |
- name: Check in release | |
uses: EndBug/add-and-commit@v7 | |
with: | |
author_name: Zakk | |
author_email: [email protected] | |
message: Automated Release | |
add: '["gamecontrollerdb.txt"]' | |
cwd: './main' | |