Skip to content

Commit 23ee027

Browse files
authored
fix(gh actions): use GITHUB_SHA instead of HEAD
1 parent 4f6f217 commit 23ee027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cp -R out/ "$PUBLISH_DIR/draft"
1818
echo "Current head: $(git rev-parse HEAD)"
1919
echo "Current dir: $(pwd)"
2020

21-
CURRENT_VERSION=$(git tag --points-at HEAD | grep 'GROQ-\d.*')
21+
CURRENT_VERSION=$(git tag --points-at $GITHUB_SHA | grep 'GROQ-\d.*')
2222

2323
# If this is a tagged commit, publish to a permalink and index.
2424
if [ -n "$CURRENT_VERSION" ]; then

0 commit comments

Comments
 (0)