From 925190df4dd7fc79bf3eaeaeb48ff4ae96c0217e Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Tue, 15 Oct 2024 17:42:40 -0500 Subject: [PATCH] fixup! [bump-go] Bump Go to 1.23.2 --- ci/bump_go.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ci/bump_go.sh b/ci/bump_go.sh index 6f0c0f8d..c475dfc4 100755 --- a/ci/bump_go.sh +++ b/ci/bump_go.sh @@ -6,6 +6,11 @@ PR_LABEL="bump-go" set -e +if [ ! -z "$(git status -s -uall)" ]; then + echo "Working directory is not clean" 2>&1 + exit 1 +fi + git show-ref --verify --quiet refs/heads/bump-go || git branch -c $REF_BRANCH bump-go # The version in the GO_VERSION file @@ -20,7 +25,7 @@ echo "Installed version: $latest_version" bump_candidate_version=$(git show bump-go:GO_VERSION 2>/dev/null || echo "") echo "Bump candidate version: $bump_candidate_version" -existing_prs=$(gh pr list --state open --base main --label "$PR_KEYWORD" --json "number" | jq -r 'map(.number) | .[]') +existing_prs=$(gh pr list --state open --base main --label "$PR_LABEL" --json "number" | jq -r 'map(.number) | .[]') if [ "$current_version" == "$latest_version" ]; then echo "Go is up to date"