Check Update #10
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: Check Update | |
on: | |
schedule: | |
# Runs at 00:00 UTC every Monday | |
- cron: '0 0 * * 1' | |
workflow_dispatch: | |
jobs: | |
check_update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r ./src/requirements.txt | |
- name: Run a script | |
run: python ./src/main.py | |
- name: Commit and push | |
uses: actions-js/push@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
message: 'action: check update' |