-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (46 loc) · 1.5 KB
/
process-and-transfer.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
name: Process and Transfer
on:
schedule:
# Run every six hours, on the hour
- cron: '0 */6 * * *'
workflow_dispatch:
env:
AWS_DEFAULT_REGION: us-west-2
AWS_ACCESS_KEY_ID: ${{ secrets.V2_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.V2_AWS_SECRET_ACCESS_KEY }}
jobs:
process-and-transfer:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- environment: Hurricanes
config_file: data_management/hurricanes.json
- environment: Floods
config_file: data_management/floods.json
- environment: Alaska
config_file: data_management/alaska.json
- environment: HKHwatermaps
config_file: data_management/hkh_watermaps.json
environment:
name: ${{ matrix.environment }}
env:
EDL_USERNAME: ${{ secrets.EARTHDATA_LOGIN_USER }}
EDL_PASSWORD: ${{ secrets.EARTHDATA_LOGIN_PASSWORD }}
steps:
- uses: actions/checkout@v3
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: data_management/environment.yml
create-args: >-
python=3.9
- name: Process new granules
continue-on-error: true
shell: bash -l {0}
run: |
python data_management/process_new_granules.py -y -w ${{ matrix.config_file }}
- name: Transfer new products
shell: bash -l {0}
run: |
python data_management/hyp3_transfer_script.py -y ${{ matrix.config_file }}