Create daily-dose.yml
This commit is contained in:
parent
48b4fec4a5
commit
aaed42c017
|
@ -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 }}
|
Loading…
Reference in New Issue