Skip to content

schedule

schedule #1542

Workflow file for this run

name: schedule
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
TZ: America/New_York
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Setup git config
run: |
git config --local user.email "[email protected]"
git config --local user.name "Auto Commit"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git pull --rebase
- name: Run archive
run: |
python save_raw.py
python write_md.py
- name: Checkout
run: |
git add .
git commit -m "Auto commit from Github Action"
git push