Skip to content

ci(deps): bump jdx/mise-action from 4.2.3 to 4.2.5 in the github-actions group across 1 directory #208

ci(deps): bump jdx/mise-action from 4.2.3 to 4.2.5 in the github-actions group across 1 directory

ci(deps): bump jdx/mise-action from 4.2.3 to 4.2.5 in the github-actions group across 1 directory #208

Workflow file for this run

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.4
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