Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: gitlab publish being broken due to bash weirdness #329

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions templates/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- |
Expand Down
Loading