Daily-Dose/.github/workflows/daily-dose.yml

30 lines
822 B
YAML
Raw Normal View History

2020-12-12 11:40:41 +00:00
name: Add daily feed
on:
schedule:
2020-12-12 12:21:13 +00:00
- cron: "23 12 * * *"
2020-12-12 11:40:41 +00:00
jobs:
run:
name: "Add Daily Report"
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
2020-12-12 12:17:40 +00:00
- name: Install Pandoc
run: "sudo apt update && sudo apt install pandoc"
2020-12-12 11:40:41 +00:00
- name: "Setup Python"
uses: actions/setup-python@v2
with:
python-version: '3.x'
- run: "python3 -m pip install -r requirements.txt && python3 main.py"
- name: Commit changes
uses: EndBug/add-and-commit@v5
with:
author_name: Navan Chauhan
author_email: navanchauhan@gmail.com
message: "Added daily report"
2020-12-12 13:00:29 +00:00
add: "archive-covid-19 archive-daily-dose index.html"
2020-12-12 11:40:41 +00:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}