Skip to content

Commit 77bf9fb

Browse files
authored
Update and rename deploy.yml to import.yml
1 parent 327abaa commit 77bf9fb

File tree

2 files changed

+29
-15
lines changed

2 files changed

+29
-15
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/import.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Import
2+
3+
# Controls when the action will run. Workflow runs when manually triggered using the UI
4+
# or API.
5+
on: workflow_dispatch
6+
7+
jobs:
8+
qa-clear:
9+
name: Clear on QA
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v3
15+
- name: Clear fhir_imports org
16+
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
17+
18+
qa-import:
19+
needs: [qa-clear]
20+
name: Import on QA
21+
runs-on: ubuntu-latest
22+
environment: qa-import
23+
24+
steps:
25+
- name: Checkout repo
26+
uses: actions/checkout@v3
27+
- name: Import into fhir_imports org
28+
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
29+

0 commit comments

Comments
 (0)