Skip to content

GitHub Actions Reusable Workflow to run `go mod tidy` and push a commit

License

Notifications You must be signed in to change notification settings

suzuki-shunsuke/go-mod-tidy-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-mod-tidy-workflow

GitHub Actions Reusable Workflow to run go mod tidy and push a commit. Keep go.mod and go.sum clean!

image

--

image

Workflow

Please see go-mod-tidy-action too!

How to use

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

Requirements

  • ghcp
aqua g -i int128/ghcp

LICENSE

MIT

About

GitHub Actions Reusable Workflow to run `go mod tidy` and push a commit

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published