From 511883d3f0a195358190b89a5d7c8e5920c33241 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 22 Apr 2020 17:02:38 -0700 Subject: [PATCH] devops: fix checking if branch is tip-of-tree when publishing @next (#1926) This should fix publishing @next from release branches. --- utils/publish_all_packages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"