Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: fix checking if branch is tip-of-tree when publishing @next (#1926)

Andrey Lushnikov511883d3f0a1
diff --git a/utils/publish_all_packages.sh b/utils/publish_all_packages.sh
index 5ad589196c..f39688b29b 100755
--- a/utils/publish_all_packages.sh
+++ b/utils/publish_all_packages.sh
@@ -54,7 +54,7 @@ elif [[ $1 == "--tip-of-tree" ]]; then
fi
# Ensure this is actually tip-of-tree.
- UPSTREAM_SHA=$(git ls-remote https://github.com/microsoft/playwright --tags master | cut -f1)
+ UPSTREAM_SHA=$(git ls-remote https://github.com/microsoft/playwright --tags $(git rev-parse --abbrev-ref HEAD) | cut -f1)
CURRENT_SHA=$(git rev-parse HEAD)
if [[ "${UPSTREAM_SHA}" != "${CURRENT_SHA}" ]]; then
echo "REFUSING TO PUBLISH: this is not tip-of-tree"