Fix the realease bump action bug
@@ -81,10 +81,10 @@ function get_updated_versions {
UPDATED_VERSIONS=()
if [[ -n ${UPDATED_COMPONENT} ]]; then
if [[ -z ${UPDATED_VERSION} ]]; then
- UPDATED_VERSION=$(get_latest_release "${COMPONENTS_REPOS[$component]}")
+ UPDATED_VERSION=$(get_latest_release "${COMPONENTS_REPOS[$UPDATED_COMPONENT]}")
fi
if [[ -v COMPONENTS_REPOS[${UPDATED_COMPONENT}] ]]; then
- HTTP_CODE=$(curl "https://api.github.com/repos/${COMPONENTS_REPOS[$component]}/releases/tags/${UPDATED_VERSION}" --write-out '%{http_code}' --silent --output /dev/null)
+ HTTP_CODE=$(curl "https://api.github.com/repos/${COMPONENTS_REPOS[$UPDATED_COMPONENT]}/releases/tags/${UPDATED_VERSION}" --write-out '%{http_code}' --silent --output /dev/null)
if [[ ${HTTP_CODE} == "200" ]]; then
UPDATED_VERSIONS["${UPDATED_COMPONENT}"]="${UPDATED_VERSION}"
else
