Update gamecontrollerdb.txt #56
This file contains hidden or 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: Update gamecontrollerdb.txt | |
| on: | |
| workflow_dispatch: | |
| # Runs on a schedule (every Sunday at 3:00 AM UTC) | |
| schedule: | |
| - cron: '0 3 * * 0' | |
| jobs: | |
| update-gamecontrollerdb: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '25' | |
| distribution: 'microsoft' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| - name: Make gradlew executable | |
| run: chmod +x ./gradlew | |
| - name: Update gamecontrollerdb.txt | |
| run: ./gradlew :downloadHidDb | |
| - name: Commit and push changes | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| file_pattern: '**/gamecontrollerdb-*.txt' | |
| commit_message: "chore: update gamecontrollerdb.txt" |