Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.06 KB

README.md

File metadata and controls

50 lines (37 loc) · 1.06 KB

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