Skip to content

schedule

schedule #17332

Workflow file for this run

name: schedule
permissions:
contents: write
on:
schedule:
- cron: "0 * * * *"
jobs:
build:
runs-on: ubuntu-latest
env:
TZ: Asia/Shanghai
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run
run: python src/main.py
- name: Commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "bot"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git add .
git commit -m "update by github action"
git push origin -u main