-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (32 loc) · 988 Bytes
/
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
name: DataOps
on:
schedule:
- cron: '0 */6 * * *'
jobs:
run:
name: Hydat-Forge Data Pipeline
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: era5-forge
environment-file: .binder/environment.yml
python-version: 3.8
auto-activate-base: false
- shell: bash -l {0}
run: |
mkdir -p ~/.aws
touch ~/.aws/credentials
echo "
[default]
aws_access_key_id = ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key = ${{ secrets.AWS_SECRET_KEY_ID }}
region = us-east-2
source_profile = default" > ~/.aws/credentials
touch ~/.cdsapirc
echo "
url: https://cds.climate.copernicus.eu/api/v2
key: ${{ secrets.CDS_API_KEY }}
" > ~/.cdsapirc
python pipeline.py