Update_data_from_NewYorkTimes_to_repo #1156
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
name: Update_data_from_NewYorkTimes_to_repo | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
#push | |
# github runners are on GMT | |
schedule: | |
- cron: '40 13 * * *' | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
Update_data_from_NewYorkTimes_to_repo: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
# Sets up python | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
# Runs a set of commands using the runners shell | |
- name: Install dependencies | |
run: | | |
date | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: querying Johns Hopkins repo to update our repo | |
run: | | |
cd src | |
python nyt.py | |
- uses: stefanzweifel/[email protected] | |
with: | |
commit_message: "Added data from New York Times to repo" | |
# Optional glob pattern of files which should be added to the commit | |
file_pattern: output/NYTimes/*.csv | |
# Optional local file path to the repository | |
repository: . | |
# Optional commit user and author settings | |
commit_user_name: DLab GitHub Actions Bot | |
commit_user_email: [email protected] | |
commit_author: DLab github bot <[email protected]> |