Create daily-dose.yml

This commit is contained in:
Navan Chauhan 2020-12-12 17:10:41 +05:30 committed by GitHub
parent 48b4fec4a5
commit aaed42c017
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 0 deletions

27
.github/workflows/daily-dose.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Add daily feed
on:
schedule:
- cron: "0 15 * * *"
jobs:
run:
name: "Add Daily Report"
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- 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* index.html"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}