Skip to content

Commit 41f27cc

Browse files
authored
Merge pull request #26 from AlexAtkinson/feature/mono_repo_safety
THX-1138: Adjust inputs qualifier.
2 parents 9aee2e4 + 2127d7c commit 41f27cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ runs:
5555
echo -e "ERROR: 571 - mono-repo-product-name must be set and NOT null!"
5656
exit 1 || true
5757
fi
58-
[[ -n "${{ inputs.mono-repo-product-name }}" ]] && opt='$opt -n ${{ inputs.mono-repo-product-name }}'
59-
[[ -n "${{ inputs.mono-repo-product-path }}" ]] && opt='$opt -d ${{ inputs.mono-repo-product-path }}'
58+
[[ "${{ inputs.mono-repo-product-name }}" != "" ]] && opt='$opt -n ${{ inputs.mono-repo-product-name }}'
59+
[[ "${{ inputs.mono-repo-product-path }}" != "" ]] && opt='$opt -d ${{ inputs.mono-repo-product-path }}'
6060
new_version="$(${{ github.action_path }}/scripts/detectNewVersion.sh $opt)" || true
6161
echo "new-version=$new_version" | tee $GITHUB_OUTPUT
6262
if [[ "$new_version" =~ "520" ]]; then

0 commit comments

Comments
 (0)