Skip to content

Commit 85a5e3d

Browse files
committed
Fix code freeze check
1 parent 34a6473 commit 85a5e3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ jobs:
4343
FLEET_MINOR=$(echo "${FLEET_VERSION}" | cut -d'.' -f2)
4444
RANCHER_VERSION="2.$((FLEET_MINOR - 1))"
4545
46-
if ! CHART_DEFAULT_BRANCH=$(curl -sf "https://raw.githubusercontent.com/rancher/rancher/release/v${RANCHER_VERSION}/package/Dockerfile" | grep "ARG CHART_DEFAULT_BRANCH=" | cut -d'=' -f2); then
46+
if ! DOCKERFILE_CONTENT=$(curl -sf "https://raw.githubusercontent.com/rancher/rancher/release/v${RANCHER_VERSION}/package/Dockerfile"); then
4747
echo "Release branch release/v${RANCHER_VERSION} not found, assuming main branch which can not be in code freeze"
4848
exit 0
4949
fi
50+
CHART_DEFAULT_BRANCH=$(echo "${DOCKERFILE_CONTENT}" | grep "ARG CHART_DEFAULT_BRANCH=" | cut -d'=' -f2)
5051
5152
if [[ "${CHART_DEFAULT_BRANCH}" != "dev-v${RANCHER_VERSION}" ]]; then
5253
echo "ERROR: CHART_DEFAULT_BRANCH does not match the expected dev branch!"

0 commit comments

Comments
 (0)