-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 1.17 KB
/
records.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: Update Records
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setting up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install requirements
run: pip install -r requirements.txt
- name: Run
run: |
python worldrecords.py
python arearecords.py
python nationalrecords.py
python cleanup.py --input worldrecords
python cleanup.py --input nationalrecords
python cleanup.py --input arearecords
python taf.py --input nationalrecords --output nationalrecords/taf.csv
python taf.py --input worldrecords --output worldrecords/taf.csv
python taf.py --input arearecords --output arearecords/taf.csv
git config user.name Github Action
git config user.email [email protected]
git add nationalrecords/*
git add worldrecords/*
git add arearecords/*
timestamp=$(date -u)
git commit -m "update records data: ${timestamp}" || exit 0
git push