mirror of
https://github.com/MiSTer-devel/Gamecontrollerdb_MiSTer.git
synced 2026-04-19 03:04:09 +00:00
34 lines
994 B
YAML
34 lines
994 B
YAML
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: zakk@rsdio.com
|
|
message: Automated Release
|
|
add: '["gamecontrollerdb.txt"]'
|
|
cwd: './main'
|
|
|
|
|
|
|
|
|