mercari / hcledit

Go package to edit HCL configuration
MIT License
49 stars 15 forks source link

[goreleaser] add `packages: write` permissions #133

Closed ryan-ph closed 3 months ago

ryan-ph commented 3 months ago

I believe this is the last permission needed to allow goreleaser to upload the artifacts needed to create a release.

This PR should fix this error message found in this workflow run: https://github.com/mercari/hcledit/actions/runs/10054218246/job/27788393692

 ⨯ release failed after 1m8s                error=scm releases: failed to publish artifacts: failed to upload hcledit_0.0.15_Linux_x86_64.tar.gz after 1 tries: POST https://uploads.github.com/repos/mercari/hcledit/releases/166614281/assets?name=hcledit_0.0.15_Linux_x86_64.tar.gz: 422 Validation Failed [{Resource:ReleaseAsset Field:name Code:already_exists Message:}]