Auto update DB #1141
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: Auto update DB | |
on: | |
push: | |
schedule: | |
- cron: '0 1 * * *' | |
jobs: | |
run: | |
name: Update games DB | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.3.0 | |
- name: Install dependencies | |
run: npm install | |
- name: Run the update | |
run: npm run update | |
- name: Download covers | |
run: npm run images | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: github-actions | |
author_email: actions@github.com | |
message: 'Updated GamePass Games' | |
add: '*' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |