Merge pull request #11233 from cli/wm/bump-go-has-token

Inject token into bump-go workflow
This commit is contained in:
William Martin 2025-07-05 13:27:27 +02:00 committed by GitHub
commit 1cbfbf8eef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -18,5 +18,6 @@ jobs:
GIT_AUTHOR_NAME: cli automation
GIT_COMMITTER_EMAIL: noreply@github.com
GIT_AUTHOR_EMAIL: noreply@github.com
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
bash .github/workflows/scripts/bump-go.sh --apply go.mod

View file

@ -76,6 +76,9 @@ if [[ "$CURRENT_TOOLCHAIN_DIRECTIVE" != "go$TOOLCHAIN_VERSION" ]]; then
echo " • toolchain $CURRENT_TOOLCHAIN_DIRECTIVE → go$TOOLCHAIN_VERSION"
fi
# ---- Run go mod tidy to ensure .0 minor version is added to go directive ----
go mod tidy
rm -f "$GO_MOD.bak"
git add "$GO_MOD"