diff --git a/CHANGELOG.md b/CHANGELOG.md index d5d4db4..86fcf51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ - Support overriding `$ARGS` from `abra.sh` custom commands and error out correctly when these commands fail ([#1](https://github.com/Coop-Cloud/peertube/issues/1)) - Add `abra restart ` to support restarting individual services ([#200](https://git.autonomic.zone/coop-cloud/abra/issues/200)) - Output changes when asking to commit during release logic ([3f0a907b5](https://git.autonomic.zone/coop-cloud/rocketchat/commit/3f0a907b57acf960d6befab3d943982d956e2474)) +- Add validation for generated output when making new release labels ([#186](https://git.autonomic.zone/coop-cloud/abra/issues/186)) # abra 9.0.0 (2021-06-10) diff --git a/abra b/abra index ab5d0bc..e43c195 100755 --- a/abra +++ b/abra @@ -2283,6 +2283,11 @@ sub_recipe_release() { error "Hmm, something went wrong generating a new version number.." fi + local -a expected_format="^coop-cloud.[a-z]*.[a-z]*.[a-z]*=v\\d*.\\d*.\\d*-\\S{8}" + if [[ ! "$new_version" =~ $expected_format ]]; then + error "'$new_version' does not match the expected label format, bailing out..." + fi + success "All compose files updated; new version is $new_version" if [ "$abra___no_prompt" = "false" ] && [ "$bump" = "false" ]; then