Skip to content

Commit e5b2836

Browse files
Sarah MorganMike Krahulec
authored andcommitted
Update github workflows: add testing for new data mart, add release workflow, remove old workflow (#878)
* update workflow to assign owners to new issues added to project board * add new data mart var to CI workflows * update token * update token comments * add release workflow * fix secret name * remove old workflow * add new workflow * remove assign issues workflow * update branch trigger
1 parent 0215f65 commit e5b2836

4 files changed

Lines changed: 64 additions & 26 deletions

File tree

.github/workflows/add_issues_to_project.yml

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

.github/workflows/outside_contributor_dbt_v1.8.6.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ jobs:
186186

187187
- name: dbt-build
188188
run: |
189-
dbt build --full-refresh --profiles-dir ./profiles/bigquery --vars '{"input_database": "dev-ci-testing","input_schema": "input_layer","clinical_enabled": true,"claims_enabled": true}'
189+
dbt build --full-refresh --profiles-dir ./profiles/bigquery --vars '{"input_database": "dev-ci-testing","input_schema": "input_layer","clinical_enabled": true,"claims_enabled": true,"fhir_preprocessing_enabled": true}'
190190
working-directory: ci_testing
191191

192192
- name: Get the result
@@ -467,7 +467,7 @@ jobs:
467467

468468
- name: dbt-build
469469
run: |
470-
dbt build --full-refresh --profiles-dir ./profiles/fabric --vars '{"input_database":"dev_ci_testing","input_schema":"input_layer","clinical_enabled":true,"claims_enabled":true}'
470+
dbt build --full-refresh --profiles-dir ./profiles/fabric --vars '{"input_database":"dev_ci_testing","input_schema":"input_layer","clinical_enabled":true,"claims_enabled":true,"fhir_preprocessing_enabled":true}'
471471
working-directory: ci_testing
472472

473473
- name: Get the result
@@ -686,7 +686,7 @@ jobs:
686686

687687
- name: dbt-compile
688688
run: |
689-
dbt compile --profiles-dir ./profiles/redshift --vars '{"input_database":"dev_ci_testing","input_schema":"input_layer","clinical_enabled":true,"claims_enabled":true}'
689+
dbt compile --profiles-dir ./profiles/redshift --vars '{"input_database":"dev_ci_testing","input_schema":"input_layer","clinical_enabled":true,"claims_enabled":true,"fhir_preprocessing_enabled":true}'
690690
working-directory: ci_testing
691691

692692
- name: Get the result
@@ -872,7 +872,7 @@ jobs:
872872

873873
- name: dbt-build
874874
run: |
875-
dbt build --full-refresh --profiles-dir ./profiles/snowflake --vars '{"input_database":"dev_ci_testing","input_schema":"input_layer","clinical_enabled":true,"claims_enabled":true}'
875+
dbt build --full-refresh --profiles-dir ./profiles/snowflake --vars '{"input_database":"dev_ci_testing","input_schema":"input_layer","clinical_enabled":true,"claims_enabled":true,"fhir_preprocessing_enabled":true}'
876876
working-directory: ci_testing
877877

878878
- name: Get the result

.github/workflows/release.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Release
2+
# creates a draft release if there is a push to main/ that changes "version" in /dbt_project.yml
3+
# user must manually publish the release and check the latest release option
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
paths:
10+
- 'dbt_project.yml'
11+
12+
jobs:
13+
create-draft:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Install yq
23+
run: |
24+
sudo wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq
25+
sudo chmod +x /usr/bin/yq
26+
27+
- name: Check version change
28+
id: check_version
29+
run: |
30+
NEW_VERSION=$(yq '.version' dbt_project.yml)
31+
OLD_VERSION=$(git show HEAD^:dbt_project.yml | yq '.version')
32+
33+
echo "NEW: $NEW_VERSION"
34+
echo "OLD: $OLD_VERSION"
35+
36+
if [ "$NEW_VERSION" != "$OLD_VERSION" ]; then
37+
echo "changed=true" >> $GITHUB_OUTPUT
38+
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
39+
else
40+
echo "changed=false" >> $GITHUB_OUTPUT
41+
fi
42+
43+
- name: Create Tag
44+
if: steps.check_version.outputs.changed == 'true'
45+
run: |
46+
git tag v${{ steps.check_version.outputs.version }}
47+
git push origin v${{ steps.check_version.outputs.version }}
48+
49+
- name: Create Draft Release
50+
if: steps.check_version.outputs.changed == 'true'
51+
uses: softprops/action-gh-release@v1
52+
with:
53+
tag_name: v${{ steps.check_version.outputs.version }}
54+
name: the_tuva_project v${{ steps.check_version.outputs.version }}
55+
draft: true
56+
prerelease: false
57+
generate_release_notes: true

.github/workflows/tuva_internal_dbt_v1.8.6.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ jobs:
195195

196196
- name: dbt-build
197197
run: |
198-
dbt build --full-refresh --profiles-dir ./profiles/bigquery --vars '{"input_database": "dev-ci-testing","input_schema": "input_layer","clinical_enabled": true,"claims_enabled": true,"provider_attribution_enabled":true}'
198+
dbt build --full-refresh --profiles-dir ./profiles/bigquery --vars '{"input_database": "dev-ci-testing","input_schema": "input_layer","clinical_enabled": true,"claims_enabled": true,"provider_attribution_enabled":true,"fhir_preprocessing_enabled":true}'
199199
working-directory: ci_testing
200200

201201
- name: Get the result
@@ -239,7 +239,7 @@ jobs:
239239

240240
- name: dbt-build
241241
run: |
242-
dbt build --full-refresh --profiles-dir ./profiles/fabric --vars '{"input_database":"dev_ci_testing","input_schema":"input_layer","clinical_enabled":true,"claims_enabled":true,"provider_attribution_enabled":true}'
242+
dbt build --full-refresh --profiles-dir ./profiles/fabric --vars '{"input_database":"dev_ci_testing","input_schema":"input_layer","clinical_enabled":true,"claims_enabled":true,"provider_attribution_enabled":true,"fhir_preprocessing_enabled":true}'
243243
working-directory: ci_testing
244244

245245
- name: Get the result
@@ -317,7 +317,7 @@ jobs:
317317

318318
- name: dbt-build
319319
run: |
320-
dbt build --full-refresh --profiles-dir ./profiles/snowflake --vars '{"input_database":"dev_ci_testing","input_schema":"input_layer","clinical_enabled":true,"claims_enabled":true}'
320+
dbt build --full-refresh --profiles-dir ./profiles/snowflake --vars '{"input_database":"dev_ci_testing","input_schema":"input_layer","clinical_enabled":true,"claims_enabled":true,"fhir_preprocessing_enabled":true}'
321321
working-directory: ci_testing
322322

323323
- name: Get the result

0 commit comments

Comments
 (0)