Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: test auto prerelease#347

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
matifali merged 3 commits intomainfromatif/test-prerelease
Feb 19, 2025
Merged

chore: test auto prerelease#347

matifali merged 3 commits intomainfromatif/test-prerelease
Feb 19, 2025

Conversation

@matifali
Copy link
Member

@matifalimatifali commentedFeb 19, 2025
edited
Loading

This configures goreleaser to automate prereleases when we push a tag that containspre orrc
Ref:https://goreleaser.com/customization/release/#github

This configures goreleaser to automate prereleases when we push a tag that contains `pre` or `rc`
@matifalimatifali self-assigned thisFeb 19, 2025
Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

🤞

Comment on lines 59 to 60
prerelease:auto
make_latest:"{{ not .Prerelease }}"
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

As perhttps://goreleaser.com/customization/templates/

make_latest:"{{ not .Prerelease }}"

is wrong and

"{{ .Prerelease }}"

will evaluate topre
It is not a boolean, so my change will not work.

QQ: Can I match a template check for

"{{ .Prerelease == 'pre' }}"

I am assuming templating works the same as they do in Helm charts.

Copy link
Member

@johnstcnjohnstcnFeb 19, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It looks like templates aren't supported inmake_latest yet.
There's a PR to support this:goreleaser/goreleaser#5418 that got released in v2.6.0

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think it's merged and available as per v2.6.0
goreleaser/goreleaser#5420

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

{{ eq (.Prerelease | len) 0 }}

https://go.dev/play/p/4_PNM98L86r

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

make_latest: {{ not .Prerelease }} should also returnmake_latest: true when.Prerelease is empty.

https://go.dev/play/p/mot2uUV-qTj

johnstcn reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Reverting the change.

Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

{{ not .Prerelease }} should also work as you suggested:https://go.dev/play/p/aDU6YypI2KT

matifali reacted with thumbs up emoji
@matifalimatifali merged commit249863d intomainFeb 19, 2025
3 checks passed
@matifalimatifali deleted the atif/test-prerelease branchFebruary 19, 2025 12:55
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 19, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@matifalimatifali

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@matifali@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp