We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3624f41 commit a1f43edCopy full SHA for a1f43ed
release-version.sh
@@ -32,7 +32,7 @@ GH_TOKEN="${GH_TOKEN:?"Provide \"GH_TOKEN\" variable with GitHub Personal Access
32
git config user.name "${GH_COMMITER_NAME}"
33
git config user.email "${GH_COMMITER_EMAIL}"
34
35
-GIT_COMMIT_MESSAGE_FIRST_LINE="$(git log -1 --pretty=%B | head -n 1)"
+GIT_COMMIT_MESSAGE_FIRST_LINE="$(git show-branch --no-name HEAD)"
36
GIT_COMMIT_MESSAGE_RELEASE_COMMIT_MATCHED="$(echo "$GIT_COMMIT_MESSAGE_FIRST_LINE" | sed -E 's/^chore\(release\)\: v([a-zA-Z0-9\.\-]+) \:tada\:/\1/')"
37
# If sed matches, it means it is a release commit, otherwise strings should be equal
38
if [[ "$GIT_COMMIT_MESSAGE_FIRST_LINE" != "$GIT_COMMIT_MESSAGE_RELEASE_COMMIT_MATCHED" ]]; then
0 commit comments