Skip to content

Commit

Permalink
devops: fix checking if branch is tip-of-tree when publishing @next (#…
Browse files Browse the repository at this point in the history
…1926)

This should fix publishing @next from release branches.
  • Loading branch information
aslushnikov committed Apr 23, 2020
1 parent 53c78a8 commit 511883d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/publish_all_packages.sh
Expand Up @@ -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"
Expand Down

0 comments on commit 511883d

Please sign in to comment.