mirror of
https://github.com/reecetech/version-increment.git
synced 2025-12-22 23:15:45 +00:00
Update action to support with tag_prefix parameter
This commit is contained in:
@@ -409,3 +409,24 @@ function init_repo {
|
||||
[[ "$output" = *"VERSION=1.2.4"* ]]
|
||||
[[ "$output" = *"No conventional commit found"* ]]
|
||||
}
|
||||
|
||||
|
||||
@test "increments the patch version by default if no conventional commits found and enabled (conventional commits) (with tag_prefix)" {
|
||||
init_repo
|
||||
|
||||
export tag_prefix="@org/product"
|
||||
export current_version="@org/product@1.2.3"
|
||||
export scheme="conventional_commits"
|
||||
|
||||
echo "some new change" > feat.txt
|
||||
git add feat.txt
|
||||
git commit -m "new change"
|
||||
|
||||
run ../../version-increment.sh
|
||||
|
||||
print_run_info
|
||||
[ "$status" -eq 0 ] &&
|
||||
[[ "$output" = *"VERSION=@org/product@1.2.4"* ]]
|
||||
[[ "$output" = *"V_VERSION=@org/product@v1.2.4"* ]]
|
||||
[[ "$output" = *"No conventional commit found"* ]]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user