Skip to content

Commit dc855d8

Browse files
authored
Fix regex pattern for extracting version in version_check.yml (#6446)
1 parent 94f71a4 commit dc855d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/version_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
# Validate version.h matches the release tag
2626
- name: Assert version increment
2727
run: |
28-
CODE_VERSION=$(grep -oP '#define\s+VERSION\s+"\K\d+(\.\d+){2,3}' source/source_main/version.h)
28+
CODE_VERSION=$(grep -oP '#define\s+VERSION\s+"\Kv?\d+(\.\d+){2,3}' source/source_main/version.h)
2929
3030
if [[ -z "$CODE_VERSION" ]]; then
3131
echo "::error::Failed to extract version from source/source_main/version.h"

0 commit comments

Comments
 (0)