-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.01 KB
/
track.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
name: Track
on:
schedule:
- cron: "0 5 * * *"
jobs:
track:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v3
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pandas
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tracking
run: |
cd track
python track.py
- name: Check for changes
run: git status
- name: Stage changed files
run: git add .
- name: Commit changed files
run: |
git config --local user.email "argo.canada.bot@gmail.com"
git config --local user.name "Argo Canada Bot"
git commit -m "Auto updating DMQC tracker via cron job"
- name: Fetch from main
run: git fetch origin main
- name: Push code to main
run: git push origin HEAD:main