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

ci(goreleaser): fix release candidate suffix (backport #3833) #3838

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Aug 30, 2024

Prevents #3819 from happening again. Also adds a document so other maintainers can generate + upload prebuilt binaries if they don't work again in the future.

The current -rc* prerelease_suffix was not working because goreleaser treated v2.1.2-rc1 as more recent than v2.1.2 in the failing workflow. This resolves by removing the *.

Testing

  1. Worked on my fork: https://github.com/rootulp/celestia-app/releases/tag/v2.1.2
  2. Worked on this repo: https://github.com/celestiaorg/celestia-app/releases/tag/v2.1.2

Before

    • git state                                      commit=48173df3dc78f9348eedb3796f29ef9e9e5dc584 branch=HEAD current_tag=v2.1.2-rc1 previous_tag=v2.1.2-rc0 dirty=true

After

    • git state                                      commit=48173df3dc78f9348eedb3796f29ef9e9e5dc584 branch=HEAD current_tag=v2.1.2 previous_tag=v2.1.2-rc0 dirty=true

It is curious that it thinks the previous tag is v2.1.2-rc0 and not v2.1.2-rc1 but I couldn't fix with various tag_sort options. I think this only impacts Goreleaser changelog generation which we don't use b/c we use Github's auto generate release notes feature.


This is an automatic backport of pull request #3833 done by Mergify.

Prevents #3819 from
happening again. Also adds a document so other maintainers can generate
+ upload prebuilt binaries if they don't work again in the future.

The current `-rc*`
[prerelease_suffix](https://goreleaser.com/customization/git/#git) was
not working because goreleaser treated v2.1.2-rc1 as more recent than
v2.1.2 in the [failing
workflow](https://github.com/celestiaorg/celestia-app/actions/runs/10523365886/job/29157983992#step:6:68).
This resolves by removing the `*`.

## Testing

1. Worked on my fork:
https://github.com/rootulp/celestia-app/releases/tag/v2.1.2
2. Worked on this repo:
https://github.com/celestiaorg/celestia-app/releases/tag/v2.1.2

### Before

```
    • git state                                      commit=48173df3dc78f9348eedb3796f29ef9e9e5dc584 branch=HEAD current_tag=v2.1.2-rc1 previous_tag=v2.1.2-rc0 dirty=true
```
### After

```
    • git state                                      commit=48173df3dc78f9348eedb3796f29ef9e9e5dc584 branch=HEAD current_tag=v2.1.2 previous_tag=v2.1.2-rc0 dirty=true
```

It is curious that it thinks the previous tag is v2.1.2-rc0 and not
v2.1.2-rc1 but I couldn't fix with various
[tag_sort](https://goreleaser.com/customization/git/?h=tag_sort#git)
options. I think this only impacts Goreleaser changelog generation which
we don't use b/c we use Github's auto generate release notes feature.

(cherry picked from commit 2931f15)
@mergify mergify bot requested review from liamsi and a team as code owners August 30, 2024 23:24
@mergify mergify bot requested review from rootulp and evan-forbes August 30, 2024 23:24
@github-actions github-actions bot added the bot item was created by a bot label Aug 30, 2024
@rootulp rootulp merged commit 0fe3a2c into v2.x Sep 3, 2024
33 checks passed
@rootulp rootulp deleted the mergify/bp/v2.x/pr-3833 branch September 3, 2024 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot item was created by a bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants