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

Fix release header template #1004

Merged
merged 3 commits into from
Oct 23, 2023
Merged

Fix release header template #1004

merged 3 commits into from
Oct 23, 2023

Conversation

wsquan171
Copy link
Contributor

@wsquan171 wsquan171 commented Oct 19, 2023

This PR is to fix the broken release note header rendering since v3.2.0, due to the command line option in goreleaser changed from --release-header to --release-header-tmpl, where the prior one is now treated as a static file.

Also addresses the following nits in our release action:

  • Bumps ghaction-import-gpg action to latest to address deprecation warnings of save-state and set-output
  • Uses --clean instead of --rm-dist per https://goreleaser.com/deprecations/#-rm-dist
  • Sets job content write permission per guideline

Takes care of regex quoting of several instances as previously not being captured by PR golang lint jobs.

Testing done:

Added the following changes w.r.t. release action:
- Replaces --rm-dist with --clean
  See: https://goreleaser.com/deprecations/#-rm-dist
- Bumps goreleaser-action version
- Sets action permission

Signed-off-by: Shawn Wang <[email protected]>
Signed-off-by: Shawn Wang <[email protected]>
Using a newer version to get rid of deprecation notice for save-state
and set-output warnings in the v2 release.

Signed-off-by: Shawn Wang <[email protected]>
@wsquan171 wsquan171 requested a review from annakhm October 19, 2023 00:38
@wsquan171
Copy link
Contributor Author

/test-all

@annakhm
Copy link
Collaborator

annakhm commented Oct 19, 2023

Thanks, releaser changes LGTM, but what is the motivation for changing regex quotes?

@wsquan171
Copy link
Contributor Author

wsquan171 commented Oct 19, 2023

Thanks, releaser changes LGTM, but what is the motivation for changing regex quotes?

@annakhm the release workflow's golang lint ci reports:

use raw string (..) to avoid escaping twice S1007

which is not reported by our PR job. Not sure if it's a version difference of the action or a configuration difference. For reference an earlier run failed with: https://github.com/wsquan171/terraform-provider-nsxt/actions/runs/6567259777

@wsquan171 wsquan171 merged commit 1c6a26a into vmware:master Oct 23, 2023
2 checks passed
@wsquan171 wsquan171 deleted the goreleaser branch October 23, 2023 17:01
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