Skip to content

Auto Update

Auto Update #2979

Workflow file for this run

name: Auto Update
on:
schedule:
- cron: "*/9 * * * *"
workflow_dispatch:
concurrency:
group: auto-update
cancel-in-progress: true
jobs:
update-files:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
token: ${{ secrets.MY_TOKEN }}
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.x"
cache: pip
cache-dependency-path: source/requirements.txt
- name: Install dependencies
run: cd source && pip install -r requirements.txt
- name: Run script
env:
MY_TOKEN: ${{ secrets.MY_TOKEN }}
GIT_AUTHOR_NAME: "github-actions[bot]"
GIT_AUTHOR_EMAIL: "github-actions[bot]@users.noreply.github.com"
GIT_COMMITTER_NAME: "github-actions[bot]"
GIT_COMMITTER_EMAIL: "github-actions[bot]@users.noreply.github.com"
run: cd source && python main.py