diff --git a/utils/publish_all_packages.sh b/utils/publish_all_packages.sh index 5ad589196ce46..f39688b29b834 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"