-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (23 loc) · 1004 Bytes
/
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:
qa-clear:
name: Clear on QA
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Clear fhir_imports org
run: docker run openconceptlab/oclapi2:qa --rm api python tools/import.py -t https://fhir.qa.openconceptlab.org/orgs/fhir_imports -s ${{ secrets.OCLAPI_TOKEN }} -c https://api.qa.openconceptlab.org/orgs/fhir_imports
qa-import:
needs: [qa-clear]
name: Import on QA
runs-on: ubuntu-latest
environment: qa-import
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Import into fhir_imports org
run: docker run openconceptlab/oclapi2:qa --rm -v $(pwd):/fhir api python tools/import.py -f /fhir -t https://fhir.qa.openconceptlab.org/orgs/fhir_imports -s ${{ secrets.OCLAPI_TOKEN }} -c https://api.qa.openconceptlab.org/orgs/fhir_imports