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

build.fsx,RELEASE.md: don't push prereleases for relNotes commits #647

Merged
merged 2 commits into from
Dec 24, 2023

Conversation

knocte
Copy link
Collaborator

@knocte knocte commented Dec 21, 2023

The way we had setup the prerelease push was making unnecessary prerelease packages for the same commit that ends up being mapped to a release. But if we push the tag and the branch at the same time, and check the commit with 'git describe' then we can detect the situation and avert it.

@knocte knocte force-pushed the avoidPreReleaseForReleaseNotesCommit branch 7 times, most recently from f2e2bf0 to 4999ffb Compare December 22, 2023 08:20
This might be seen as illogical, because it is visibly much more
code than before; however it has some added benefits:

* It has a log that explains when a nuget push doesn't happen.
* It avoids using GitHubActions specific syntax, which sometimes
is tricky to get right (and so, less maintainable).
* It improves a helper func to check for whitespace too.
The way we had setup the prerelease push was making unnecessary prerelease
packages for the same commit that ends up being mapped to a release. But if
we push the tag and the branch at the same time, and check the commit with
'git describe' then we can detect the situation and avert it.
@knocte knocte force-pushed the avoidPreReleaseForReleaseNotesCommit branch 3 times, most recently from d50a242 to fa788db Compare December 24, 2023 09:19
@knocte knocte merged commit 237280f into fsprojects:master Dec 24, 2023
15 checks passed
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.

None yet

1 participant