-
Notifications
You must be signed in to change notification settings - Fork 1
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
Handle version directly in release action #43
Conversation
💊 0 quarantined ✅ 10 passed 🕐 10 new ⋅ (learn more) |
8087030
to
347ae71
Compare
@@ -1,7 +1,7 @@ | |||
[package] | |||
name = "trunk-analytics-cli" | |||
edition = "2021" | |||
version = "0.5.2" | |||
version = "0.0.0" |
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.
will we need to update the uploader accordingly?
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.
No, the version is overwritten by the action on release.
- name: Update version | ||
run: | | ||
export VERSION=${{ github.event.inputs.release_tag }} | ||
sed -i "s/0.0.0/$VERSION/g" Cargo.toml | ||
|
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.
This is where the magic happens. It overwrites the release version with the one tagged by the pipeline.
We've had a few instances where we forgot to update the release version. Let's just handle it entirely in the release and leave local as
0.0.0
.