-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.13 KB
/
main.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
name: Update DischargeOBS
on:
# push:
# branches:
# - "main"
schedule:
# job should run at 8.01 pst which translates to 4pm UTC
- cron: '15 * * * *'
workflow_dispatch:
jobs:
dl_dischargeobs:
defaults:
run:
shell: bash
name: 'Download DischargeOBS Files'
runs-on: ubuntu-20.04
environment: RUN
env:
OBJ_STORE_BUCKET: ${{ secrets.OBJ_STORE_BUCKET }}
OBJ_STORE_SECRET: ${{ secrets.OBJ_STORE_SECRET }}
OBJ_STORE_USER: ${{ secrets.OBJ_STORE_USER }}
OBJ_STORE_HOST: ${{ secrets.OBJ_STORE_HOST }}
steps:
- uses: actions/checkout@v3
id: checkout
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- id: install_dependencies
name: install python dependencies
shell: bash
run: |
pip install --upgrade pip
pip install -r requirements.txt
- id: debug
name: debug and list files
shell: bash
run: |
ls -la
- id: download_dischargeOBS
name: download dischargeOBS files
shell: bash
run: |
python discharge_obs_pd.py