Add optional `expected_version` argument to `iotile release`
Open
iotile-build
priority:medium
type:enhancement
- Dominant language
- Python
- Stars
- 14
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
For releasing from a CI system that includes the version number in an environment variable or tag, there should be a way to pass that into `iotile release` so that it verifies that the version it will release is what you expect and fails otherwise.
For example:
```
$ iotile release --expected-version=$CI_VERSION_STRING
```
This would remove any potential mistakes releasing the wrong version.
Contributor guide
Assessment
This issue has not been assessed yet.