Skip to content

Commit 511883d

Browse files
authored
devops: fix checking if branch is tip-of-tree when publishing @next (#1926)
This should fix publishing @next from release branches.
1 parent 53c78a8 commit 511883d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/publish_all_packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ elif [[ $1 == "--tip-of-tree" ]]; then
5454
fi
5555

5656
# Ensure this is actually tip-of-tree.
57-
UPSTREAM_SHA=$(git ls-remote https://github.com/microsoft/playwright --tags master | cut -f1)
57+
UPSTREAM_SHA=$(git ls-remote https://github.com/microsoft/playwright --tags $(git rev-parse --abbrev-ref HEAD) | cut -f1)
5858
CURRENT_SHA=$(git rev-parse HEAD)
5959
if [[ "${UPSTREAM_SHA}" != "${CURRENT_SHA}" ]]; then
6060
echo "REFUSING TO PUBLISH: this is not tip-of-tree"

0 commit comments

Comments
 (0)