Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[goreleaser] add packages: write permissions #133

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Conversation

ryan-ph
Copy link
Member

@ryan-ph ryan-ph commented Jul 23, 2024

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:}]

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:}]
```
@ryan-ph ryan-ph merged commit 5857aee into main Jul 23, 2024
5 checks passed
@ryan-ph ryan-ph deleted the ryanpham/goreleaser branch July 23, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants