-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (44 loc) · 1.69 KB
/
hosp_data.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Update_data_from_HealthData_gov_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: '35 19 * * MON'
# 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_HealthData_gov_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 HealthData_gov API to update our repo
run: |
cd src
python healthd.py
- uses: stefanzweifel/[email protected]
with:
commit_message: "Added data from HealthData.gov to repo"
# Optional glob pattern of files which should be added to the commit
file_pattern: output/*/*.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]>