Skip to content
Merged
Prev Previous commit
Fix detection of failed text replacement
I checked and the comment seems to be correct.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
  • Loading branch information
owen-mc and Copilot authored Jun 6, 2026
commit 292fc8b7778eac54fb969519ec649add6662a14b
6 changes: 4 additions & 2 deletions .github/workflows/go-version-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ jobs:
CURRENT_MAJOR_MINOR_ESCAPED=$(echo "$CURRENT_MAJOR_MINOR" | sed 's/\./\\./g')

# Update MODULE.bazel
if ! sed -i "s/go_sdk\.download(version = \"$CURRENT_VERSION_ESCAPED\")/go_sdk.download(version = \"$LATEST_VERSION_NUM\")/" MODULE.bazel; then
echo "Warning: Failed to update MODULE.bazel"
sed -i "s/go_sdk\.download(version = \"$CURRENT_VERSION_ESCAPED\")/go_sdk.download(version = \"$LATEST_VERSION_NUM\")/" MODULE.bazel
if ! grep -q "go_sdk.download(version = \"$LATEST_VERSION_NUM\")" MODULE.bazel; then
echo "Error: Failed to update MODULE.bazel"
exit 1
fi
Comment thread
owen-mc marked this conversation as resolved.

# Update go/extractor/go.mod
Expand Down
Loading