Skip to content

Commit 3bbdb48

Browse files
committed
chore(gradle): slightly improve release task
1 parent 4101e5b commit 3bbdb48

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.dev/githooks/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ do test -z "$a" || [[ "$a" == \#* ]] || scopes+="$a|";
99
done;
1010
scopes="${scopes%\|})"
1111

12-
cat "$1" | grep -Eq "(fix|feat|docs|style|refactor|test|chore|rework|release)(\($scopes\))?: [a-z]"
12+
cat "$1" | grep -Eq "(fix|feat|docs|style|refactor|test|chore|rework|release)(\($scopes\))?: [0-9a-z]"
1313
result=$?
1414
if test $result -ne 0
1515
then echo "Please check that the commit message adheres to the guidelines at http://karma-runner.github.io/latest/dev/git-commit-msg.html and the scope is one of $scopes as defined in $scopes_file"

gradle/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ tasks {
7171
}
7272

7373
val release by creating {
74-
dependsOn(deploy)
74+
dependsOn(check)
7575
group = "distribution"
7676
description = "Prepares a new Release by bumping the version and creating a commit with a git tag of the new version"
7777
doLast {
@@ -102,7 +102,7 @@ tasks {
102102
println("Version: $newVersion")
103103
println("Beschreibung: $desc")
104104
exec { commandLine("git", "add", "gradle.properties") }
105-
exec { commandLine("git", "commit", "-m", "release: $newVersion", "--no-verify") }
105+
exec { commandLine("git", "commit", "-m", "release: $newVersion") }
106106
exec { commandLine("git", "tag", newVersion, "-m", desc) }
107107
exec { commandLine("git", "push", "--follow-tags") }
108108
}

0 commit comments

Comments
 (0)