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: fix version script and update release.yaml #303

Merged
merged 2 commits into from
Aug 7, 2024
Merged

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Aug 7, 2024

Fixes some issues in the version script related to dev versions.

@johnstcn johnstcn self-assigned this Aug 7, 2024
@@ -54,25 +54,17 @@ if [[ "${ENVBUILDER_RELEASE:-}" == *t* ]]; then
# $last_tag will equal `git describe --always` if we currently have the tag
# checked out.
if [[ "${last_tag}" != "$(git describe --always)" ]]; then
# make won't exit on $(shell cmd) failures, so we have to kill it :(
Copy link
Member Author

Choose a reason for hiding this comment

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

review: I don't think we need this given how we're building

@@ -39,3 +39,9 @@ cdroot() {
log() {
echo "$*" 1>&2
}

# error prints an error message and returns an error exit code.
Copy link
Member Author

Choose a reason for hiding this comment

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

review: missed copy-pasta

- name: Get version
id: get-version
env:
ENVBUILDER_RELEASE: "t"
Copy link
Member Author

Choose a reason for hiding this comment

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

review: the updated script will emit -dev versions unless this is explicitly set. In this case it will validate that the version is an annotated tag.

@johnstcn johnstcn merged commit b4d34b3 into main Aug 7, 2024
4 checks passed
@johnstcn johnstcn deleted the cj/fix-version-script branch August 7, 2024 16:38
@johnstcn johnstcn restored the cj/fix-version-script branch August 8, 2024 08:42
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.

3 participants