Skip to content

Commit d179c31

Browse files
author
Mindee
committed
fail if Version doesn't follow bookmark
1 parent f4c7e09 commit d179c31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/tag-version.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
tag-version:
1010
runs-on: ubuntu-latest
11-
if: "contains(github.event.head_commit.message, ':bookmark: Version ')"
11+
if: "contains(github.event.head_commit.message, ':bookmark:')"
1212

1313
steps:
1414
- uses: actions/checkout@v4
@@ -22,8 +22,8 @@ jobs:
2222
version=$(git log -1 --skip=0 --pretty=%s | grep -oP "(?<=${msg_start})${version_format}")
2323
2424
if [ -z "${version}" ]; then
25-
echo 'Version not found, exiting.'
26-
exit 0
25+
echo 'Version not found, aborting.'
26+
exit 1
2727
fi
2828
2929
echo "Found version: ${version}";

0 commit comments

Comments
 (0)