-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.31 KB
/
push-era5-import-dhis2.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
name: Push era5-import-dhis2 pipelines to workspaces
on:
push:
paths:
- ".github/workflows/push-era5-import-dhis2.yaml"
- "era5_import_dhis2/**"
workflow_dispatch:
jobs:
deploy:
strategy:
matrix:
pipeline: [
{"workspace": "civ-data-integration-3cfb03", "pipeline_id": "era5_import_dhis2", "token": OH_TOKEN_CIV},
{"workspace": "bfa-malaria-data-reposi-b1b366", "pipeline_id": "era5_import_dhis2", "token": OH_TOKEN_BFA},
{"workspace": "niger-nmdr", "pipeline_id": "era5_import_dhis2", "token": OH_TOKEN_NER},
]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Configure OpenHEXA CLI
uses: blsq/openhexa-cli-action@v1
with:
workspace: ${{ matrix.pipeline.workspace }}
token: ${{ secrets[matrix.pipeline.token] }}
- name: Push pipeline to OpenHEXA
run: |
sed -i "s/__pipeline_id__/${{ matrix.pipeline.pipeline_id }}/g" era5_import_dhis2/pipeline.py && \
openhexa pipelines push era5_import_dhis2 \
-n ${{ github.sha }} \
-l "https://github.com/BLSQ/openhexa-pipelines-era5/commit/${{ github.sha }}" \
--yes