-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 924 Bytes
/
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
name: Update
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- STAGE-0/FPS-URB-RCC_STAGE-0_WRF_experiment_design.yaml
pull_request:
branches: [ main ]
paths:
- STAGE-0/FPS-URB-RCC_STAGE-0_WRF_experiment_design.yaml
jobs:
update-tables:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: environment.yml
- name: Update CSVs
run: |
which -a python
conda activate test
cd STAGE-0/
python exp_design.py
- name: Commit
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git commit -am "[Actions] Update"
git push