Skip to content

Commit a606c89

Browse files
committed
fix for #108
Update action.yml so the checks and installations that previously ran only when DOTNET_VALIDATION_ENABLED is true also run when TERMINOLOGY_SERVICE_BFARM_ENABLED is enabled. The conditionals for "Check if .NET is installed" and "Install Firely.Terminal" were updated to test either input, and the INPUT_TERMINOLOGY_SERVICE_BFARM_ENABLED input is exposed to the shell environment for those steps. This ensures required tooling is validated/installed when the terminology service feature is enabled.
1 parent b63afc8 commit a606c89

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ runs:
8787

8888
- name: Check if .NET is installed
8989
run: |
90-
if $INPUT_DOTNET_VALIDATION_ENABLED; then
90+
if $INPUT_DOTNET_VALIDATION_ENABLED || $INPUT_TERMINOLOGY_SERVICE_BFARM_ENABLED; then
9191
if ! command -v dotnet &> /dev/null
9292
then
9393
echo "dotnet could not be found. Please see actions/setup-dotnet to set it up before running this action."
@@ -97,6 +97,7 @@ runs:
9797
shell: bash
9898
env:
9999
INPUT_DOTNET_VALIDATION_ENABLED: ${{ inputs.DOTNET_VALIDATION_ENABLED }}
100+
INPUT_TERMINOLOGY_SERVICE_BFARM_ENABLED: ${{ inputs.TERMINOLOGY_SERVICE_BFARM_ENABLED }}
100101

101102
# Test Firely SDK version
102103
- name: Check .NET SDK Version
@@ -112,7 +113,7 @@ runs:
112113
# Install Firely.Terminal
113114
- name: Install Firely.Terminal
114115
run: |
115-
if $INPUT_DOTNET_VALIDATION_ENABLED; then
116+
if $INPUT_DOTNET_VALIDATION_ENABLED || $INPUT_TERMINOLOGY_SERVICE_BFARM_ENABLED; then
116117
if ! command -v fhir &> /dev/null
117118
then
118119
dotnet tool install --global Firely.Terminal --version $FIRELY_TERMINAL_VERSION > /dev/null
@@ -122,6 +123,7 @@ runs:
122123
env:
123124
FIRELY_TERMINAL_VERSION: ${{ inputs.FIRELY_TERMINAL_VERSION }}
124125
INPUT_DOTNET_VALIDATION_ENABLED: ${{ inputs.DOTNET_VALIDATION_ENABLED }}
126+
INPUT_TERMINOLOGY_SERVICE_BFARM_ENABLED: ${{ inputs.TERMINOLOGY_SERVICE_BFARM_ENABLED }}
125127

126128
# Test Firely.Terminal install
127129
- name: Check Firely Terminal Version

0 commit comments

Comments
 (0)