GitHub Actions Reusable Workflow to run go mod tidy
and push a commit. Keep go.mod and go.sum clean!
--
Please see go-mod-tidy-action too!
---
name: go mod tidy
on:
pull_request:
paths:
- go.mod
- go.sum
- "**.go"
permissions: {}
jobs:
go-mod-tidy:
uses: suzuki-shunsuke/go-mod-tidy-workflow/.github/workflows/go-mod-tidy.yaml@8facac38f5b2008648c14e31c632c3a709439b9c # v0.1.1
with:
go-version: 1.20.2
aqua_version: v1.35.0
secrets:
gh_app_id: ${{secrets.APP_ID}}
gh_app_private_key: ${{secrets.APP_PRIVATE_KEY}}
permissions:
contents: read
- ghcp
aqua g -i int128/ghcp