-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (23 loc) · 1.02 KB
/
import.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
name: Import
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on: workflow_dispatch
jobs:
staging-clear:
name: Clear on staging
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Clear fhir_imports org
run: docker run --rm openconceptlab/oclapi2:qa python tools/import.py -t https://fhir.staging.openconceptlab.org/orgs/fhir_imports -s ${{ secrets.OCLAPI_TOKEN }} -c https://api.staging.openconceptlab.org/orgs/fhir_imports
staging-import:
needs: [staging-clear]
name: Import on staging
runs-on: ubuntu-latest
environment: staging-import
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Import into fhir_imports org
run: docker run --rm -v $(pwd):/fhir openconceptlab/oclapi2:qa python tools/import.py -f /fhir/ -t https://fhir.staging.openconceptlab.org/orgs/fhir_imports -s ${{ secrets.OCLAPI_TOKEN }} -c https://api.staging.openconceptlab.org/orgs/fhir_imports