Skip to content

Schedule

Schedule #574

Workflow file for this run

name: Schedule
on:
schedule:
- cron: "0 17 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check-out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: install required packages
run: pip install -r requirements.txt
- name: execute py script
run: |
python main.py
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
- name: commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git commit -m "update data ${{ steps.date.outputs.date }}" -a
- name: push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main