Merge pull request #11233 from cli/wm/bump-go-has-token
Inject token into bump-go workflow
This commit is contained in:
commit
1cbfbf8eef
2 changed files with 4 additions and 0 deletions
1
.github/workflows/bump-go.yml
vendored
1
.github/workflows/bump-go.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
3
.github/workflows/scripts/bump-go.sh
vendored
3
.github/workflows/scripts/bump-go.sh
vendored
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue