-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (53 loc) · 1.45 KB
/
run_update.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
# Test workflow for running a python script via github actions
name: Github actions update test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# schedule:
# - cron: '* * * * *'
jobs:
run:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: run table updates
run: |
python update_repo_tables.py
- name: Commit files
id: commit_tables
run: |
git config --local user.email "[email protected]"
git config --local user.name "github-actions"
git add --all
git commit -m "update csv data" -a
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
- name: Run spec updates
run: |
sleep 30
python updated_specs.py
- name: Commit files
id: commit_son
run: |
git config --local user.email "[email protected]"
git config --local user.name "github-actions"
git add --all
git commit -m "update json data" -a
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main