chore(deps): bump the golang group across 13 directories with 10 updates #146
Workflow file for this run
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: Dependabot post updates | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| post: | |
| if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Fetch Dependabot metadata | |
| id: dependabot-metadata | |
| uses: dependabot/fetch-metadata@v2 | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: ./go.mod | |
| cache-dependency-path: "**/*.sum" | |
| - name: update go toolchain version | |
| if: steps.dependabot-metadata.outputs.package-ecosystem == 'docker' && steps.dependabot-metadata.outputs.dependency-names == 'golang' && steps.dependabot-metadata.outputs.new-version != '' | |
| run: | | |
| go get toolchain@${{ steps.dependabot-metadata.outputs.new-version }} | |
| - name: go build | |
| run: | | |
| make tidy | |
| make generate | |
| make build | |
| - name: git update | |
| uses: planetscale/ghcommit-action@v0.2.19 | |
| with: | |
| commit_message: "post update after go dependencies updation" | |
| repo: ${{ github.repository }} | |
| branch: ${{ github.head_ref || github.ref_name }} | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - name: close and reopen to retrigger workflow | |
| run: | | |
| gh pr ready --undo ${{ github.event.pull_request.number }} | |
| gh pr edit ${{ github.event.pull_request.number }} --add-label "ok-to-test" --remove-label "needs-ok-to-test" | |
| gh pr comment ${{ github.event.pull_request.number }} -b "/test ready-for-review" | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} |