Skip to content

GitHub Action to update go.sum. (Mainly for working with Renovate Bot which sometimes lacks package sum.)

License

Notifications You must be signed in to change notification settings

at-wat/go-sum-fix-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-sum-fix-action

GitHub Action to update go.sum.

Updates

v0.3.0

Since v0.3.0, go-sum-fix-action fails if previous commit is not tidied. This is to prevent causing infinite loop of force-push by Renovate bot and go-sum-fix-action.

v0.8.0

update_import_path option is deprecated and will be removed in a future release. Use Renovate gomodUpdateImportPaths option instead. (postUpdateOptions)

  "postUpdateOptions": ["gomodUpdateImportPaths", "gomodTidy"]

Example

Example to automatically fix go.sum in Renovate Bot's pull requests.

name: go-mod-fix
on:
  push:
    branches:
      - renovate/*

jobs:
  go-mod-fix:
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v2
        with:
          fetch-depth: 2
      - name: fix
        uses: at-wat/go-sum-fix-action@v0
        with:
          git_user: @@MAINTAINER_NAME@@
          git_email: @@MAINTAINER_EMAIL_ADDRESS@@
          github_token: ${{ secrets.GITHUB_TOKEN }}
          commit_style: squash
          push: force

About

GitHub Action to update go.sum. (Mainly for working with Renovate Bot which sometimes lacks package sum.)

Resources

License

Stars

Watchers

Forks

Packages

No packages published