30 lines
822 B
YAML
30 lines
822 B
YAML
name: Add daily feed
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "23 12 * * *"
|
|
|
|
jobs:
|
|
run:
|
|
name: "Add Daily Report"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v2
|
|
- name: Install Pandoc
|
|
run: "sudo apt update && sudo apt install pandoc"
|
|
- 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"
|
|
add: "archive-covid-19 archive-daily-dose index.html"
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|