schedule #1542
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |