Merge pull request #21816 from minikube-bot/gendocs #229
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "go-mod-tidy" | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| env: | |
| GOPROXY: https://proxy.golang.org | |
| GO_VERSION: '1.24.6' | |
| permissions: | |
| contents: read | |
| jobs: | |
| go-mod-tidy: | |
| if: github.repository == 'kubernetes/minikube' | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 | |
| with: | |
| go-version: ${{env.GO_VERSION}} | |
| - name: Tidy Go Modules | |
| id: gmodtidy | |
| run: | | |
| make gomodtidy | |
| c=$(git status --porcelain) | |
| # The following is to support multiline with GITHUB_OUTPUT, see https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings | |
| echo "changes<<EOF" >> "$GITHUB_OUTPUT" | |
| echo "$c" >> "$GITHUB_OUTPUT" | |
| echo "EOF" >> "$GITHUB_OUTPUT" | |
| - name: Create PR | |
| if: ${{ steps.gmodtidy.outputs.changes != '' }} | |
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e | |
| with: | |
| token: ${{ secrets.MINIKUBE_BOT_PAT }} | |
| commit-message: Update auto-generated docs and translations | |
| committer: minikube-bot <[email protected]> | |
| author: minikube-bot <[email protected]> | |
| branch: gomodtidy | |
| push-to-fork: minikube-bot/minikube | |
| base: master | |
| delete-branch: true | |
| title: 'build: go mod tidy' | |
| body: | | |
| Committing changes resulting from `make gomodtidy`. | |
| This PR is auto-generated by the [gendocs](https://github.com/kubernetes/minikube/blob/master/.github/workflows/go-mod-tidy.yml) CI workflow that runs on every push to master. | |
| ``` | |
| ${{ steps.gmodtidy.outputs.changes }} | |
| ``` |