Skip to content

Commit

Permalink
fix parse-tag-name to prevent workflow from running when a tag check …
Browse files Browse the repository at this point in the history
…is not met + bump shell version (#12849)
  • Loading branch information
aalves08 authored Dec 26, 2024
1 parent df3dffc commit fb04e7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shell/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rancher/shell",
"version": "2.0.2",
"version": "2.0.3",
"description": "Rancher Dashboard Shell",
"repository": "https://github.com/rancherlabs/dashboard",
"license": "Apache-2.0",
Expand Down
4 changes: 3 additions & 1 deletion shell/scripts/extension/parse-tag-name
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ if [[ "${GITHUB_WORKFLOW_TYPE}" == "catalog" ]]; then
if [[ "${GITHUB_RELEASE_TAG}" != "${BASE_EXT}-${EXT_VERSION}" ]]; then
echo -e "release tag doesn't match catalog tag: release tag -> ${GITHUB_RELEASE_TAG} ::: curr catalog tag -> ${BASE_EXT}-${EXT_VERSION}"
gh run cancel ${GITHUB_RUN_ID}
exit 1
fi
# Ensure "chart" workflow release tag name matches some pkg/<pkg-name>
else
Expand All @@ -33,5 +34,6 @@ else
if [[ "${NO_MATCHES}" == "true" ]]; then
echo -e "release tag doesn't match any chart tag: ${GITHUB_RELEASE_TAG}. Check your pkg/<!-YOUR-EXT-> folders and corresponding versions to complete the match"
gh run cancel ${GITHUB_RUN_ID}
exit 1
fi
fi
fi

0 comments on commit fb04e7d

Please sign in to comment.