Update #115
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow archives published data if there are changes every hour | |
name: Update | |
on: | |
schedule: | |
# Run every week. | |
- cron: '0 0 * * 0' | |
push: | |
branches: [master] | |
workflow_dispatch: | |
inputs: | |
name: | |
description: 'Manual trigger' | |
required: false | |
default: 'Reason: Manual trigger' | |
jobs: | |
update: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
pip install pandas | |
which python | |
python --version | |
- name: Scrape and Commit | |
run: python pull.py | |
- name: Commit | |
uses: stefanzweifel/[email protected] | |
with: | |
commit_message: Update CSV | |
file_pattern: data/* | |
commit_author: pratapvardhan <[email protected]> |