Skip to content

Auto Update

Auto Update #598

Workflow file for this run

name: Auto Update
on:
schedule:
- cron: "*/9 * * * *"
workflow_dispatch:
jobs:
update-files:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
token: ${{ secrets.MY_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.x"
- name: Configure git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install dependencies
run: cd source && pip install --no-cache-dir -r requirements.txt
- name: Run script
env:
MY_TOKEN: ${{ secrets.MY_TOKEN }}
run: cd source && python main.py