-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/ci: do not release "zero" releases in release workflow
When we create a release branch for v0.$X.0, it's likely that commits on the default branch will from that point onwards be intended for the $X+1 version. However, unless we tag the next commit after the release branch, it might be the case that pseudo versions of those later commits refer to the $X release. A "zero" tag fixes this when applied to the first commit after a release branch. Critically, the -0.dev pre-release suffix is ordered before -alpha tags. This is per advice in: golang/go#38985 (comment) Also DRY up our use of tag prefixes (and suffixes) so that they can be reused in GitHub glob patterns as well as CUE regular expressions. Signed-off-by: Paul Jolly <[email protected]> Change-Id: I79b9308fd858cb1e08f119787254f5927e503545 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/549359 Unity-Result: CUEcueckoo <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Daniel Martí <[email protected]>
- Loading branch information
Showing
5 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ name: Release | |
push: | ||
tags: | ||
- v* | ||
- '!*-0.dev' | ||
branches: | ||
- ci/test | ||
- master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters