Skip to content

Everyday Data Collections Action #1489

Everyday Data Collections Action

Everyday Data Collections Action #1489

Workflow file for this run

name: Everyday Data Collections Action
on:
schedule:
- cron: '55 23 * * *' # Five mins before 24:00:00
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Running The Action
run: |
python3 Scrap.py
- name: Commiting data files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Added New Corona Data"
- name: Pushing corona data
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}