Skip to content

Commit ff4fe6e

Browse files
committed
fix(publish): change regex
1 parent 43c6250 commit ff4fe6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ cp -R out/ "$PUBLISH_DIR/draft"
1818
echo "Current head: $(git rev-parse HEAD)"
1919
echo "Current dir: $(pwd)"
2020
echo "Current branch: $(git branch --show-current)"
21-
echo "Current tag: $(git tag --points-at HEAD)"
21+
echo "Current tag: $(git tag --points-at $GITHUB_SHA)"
2222
echo "Current SHA: $GITHUB_SHA"
2323
echo "All tags: $(git tag -l)"
2424

25-
CURRENT_VERSION=$(git tag --points-at $GITHUB_SHA | grep 'GROQ-\d.*')
25+
CURRENT_VERSION=$(git tag --points-at "$GITHUB_SHA" | grep -E 'GROQ-[0-9].*')
2626

2727
echo "Current version: $CURRENT_VERSION"
2828

0 commit comments

Comments
 (0)