fix(deps): bump the go-minor-patch group across 2 directories with 6 updates #210
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 Go Mod Tidy | |
| on: | |
| pull_request_target: | |
| branches: [main] | |
| jobs: | |
| tidy: | |
| name: Go Mod Tidy | |
| runs-on: ubuntu-latest | |
| if: github.actor == 'dependabot[bot]' | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| submodules: recursive | |
| - name: Setup Go with caching | |
| uses: actions/setup-go@v7 | |
| with: | |
| go-version-file: go.work | |
| cache: true | |
| - name: Install mise | |
| uses: jdx/mise-action@v4.2.3 | |
| with: | |
| experimental: true | |
| - name: Run go mod tidy for all modules | |
| run: mise run mod-tidy | |
| - name: Commit changes if any | |
| run: | | |
| git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git add -A | |
| if git diff --staged --quiet; then | |
| echo "No changes to commit" | |
| else | |
| git commit -m "chore: go mod tidy" | |
| git push | |
| fi |