-
Notifications
You must be signed in to change notification settings - Fork 844
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 Fix: Preprocess release title in gha #7486
CI Fix: Preprocess release title in gha #7486
Conversation
eb94deb
to
c1dbeef
Compare
Signed-off-by: garyschulte <[email protected]>
c1dbeef
to
ff8e322
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice solution 👍
Think regex could be stricter but this is a clear improvement
# strip all whitespace | ||
RELEASE_NAME="${RELEASE_NAME//[[:space:]]/}" | ||
if [[ ! "$RELEASE_NAME" =~ ^[0-9]+\.[0-9]+(\.[0-9]+)?(-.*)?$ ]]; then | ||
echo "Release name does not conform to a valid besu release format YY.M.v[-suffix], e.g. 24.8.0-RC1." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonder if we should make this strictly full release since this workflow is triggered by the released
type which doesn't include pre-releases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the flexibility is worth it, there is historical precedent for publishing -* releases, like for verkle or testnets etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In terms of github technicalities, would these be published as full releases rather than a pre-release then?
Signed-off-by: garyschulte <[email protected]>
Signed-off-by: garyschulte <[email protected]> Signed-off-by: Ade Lucas <[email protected]>
Signed-off-by: garyschulte <[email protected]> Signed-off-by: gconnect <[email protected]>
PR description
pre-process release title in release actions to ensure it conforms to a besu release version and trim any leading or trailing spaces
Tested on forked repo with a variety of whitespace and failure modes.