From e7cf2eef6038a4a74561157b4f251e0a11f34f78 Mon Sep 17 00:00:00 2001 From: Jordan McClintock Date: Wed, 30 Oct 2024 08:25:59 +0000 Subject: [PATCH] fix: gitlab publish being broken due to bash weirdness --- templates/publish.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/templates/publish.yml b/templates/publish.yml index c7ebdb4f..3262e571 100644 --- a/templates/publish.yml +++ b/templates/publish.yml @@ -65,16 +65,20 @@ publish: TASK_NAME="publish-release" fi - ARGS="--set FLAVOR=\"$[[ inputs.flavor ]]\" \ - --set VERSION=\"$(uds-releaser show ${FLAVOR} --version-only)\"" + ARGS=( + --set FLAVOR="$[[ inputs.flavor ]]" + --set VERSION="$(uds-releaser show $[[ inputs.flavor ]] --version-only)" + ) if [[ -n "$[[ inputs.target-repo ]]" ]]; then - ARGS+=" --set TARGET_REPO=\"$[[ inputs.target-repo ]]\"" + ARGS+=(--set TARGET_REPO="$[[ inputs.target-repo ]]") else - ARGS+=" --set TEAM=\"$[[ inputs.team ]]\"" + ARGS+=(--set TEAM="$[[ inputs.team ]]") fi - uds run $TASK_NAME ${ARGS} ${OPTIONS} + echo Running $TASK_NAME "${ARGS[@]}" ${OPTIONS} + + uds run $TASK_NAME "${ARGS[@]}" ${OPTIONS} # Create tag and release - |