-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (33 loc) · 1.11 KB
/
update-rvdss-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
name: Update RVDSS Data
on:
workflow_dispatch:
schedule:
# Updates are ~3pm EDT (UTC-4 or UTC-5)
# So 21:00 UTC for safety
- cron: '0 21 * * THU'
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install Dependencies
run: pip install -r scripts/requirements.txt
- name: Download latest data
run: python scripts/rvdss_update.py
- name: Add new files
run: git add target-data/ # This ensures the new 'data/' directory and its contents are added to the git index
- name: Commit results
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "[email protected]"
git commit -am 'update rvdss data' || echo "No changes to commit"
git push origin || echo "No changes to commit"