Cron.Weekly #227
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: Cron.Weekly | |
on: | |
schedule: | |
- cron: 0 12 * * 0 | |
repository_dispatch: | |
workflow_dispatch: | |
jobs: | |
exec: | |
name: Update games list on ubuntu-latest with Python 3.x | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
architecture: 'x64' | |
- name: Run pip3 | |
run: pip3 install -r requirements.txt | |
- name: Execute Script | |
run: python3 gamesListUpdater.py | |
env: | |
API_KEY: ${{ secrets.API_KEY }} | |
- name: Commit Changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: 'Updated the games list' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |