-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (45 loc) · 1.31 KB
/
test.yaml
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
name: Manually Test Fetch Data
on: workflow_dispatch
jobs:
fetchstatedata:
runs-on: ubuntu-latest
name: Fetch State Data
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Run Script
run: |
pip install -r requirements.txt
python getstatedata.py
- name: Commit Report
continue-on-error: true
run: |
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github.com'
git add -A
git commit -am "Automatically Updated State Data"
git push
fetchdistrictdata:
runs-on: ubuntu-latest
name: Fetch District Data
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Run Script
run: |
pip install -r requirements.txt
python getdistrictdata.py
- name: Commit Report
continue-on-error: true
run: |
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github.com'
git add -A
git commit -am "Automatically Updated District Data"
git push