feat(era5_import_dhis2): add era5 dhis2 import pipeline #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |