It was possible to release a CLI with version different than the tag which created the release. E.g. recently a tag v0.1.1 released a CLI with version 0.1.0.
What is the new behavior?
The release action will now check whether the version in the tag and the Cargo.toml file match or not. If they don't match, the release action fails.
What kind of change does this PR introduce?
Fix
What is the current behavior?
It was possible to release a CLI with version different than the tag which created the release. E.g. recently a tag
v0.1.1
released a CLI with version0.1.0
.What is the new behavior?
The release action will now check whether the version in the tag and the
Cargo.toml
file match or not. If they don't match, the release action fails.Additional context
N/A