Skip to content

Commit

Permalink
Merge pull request #80272 from microsoft/pine/1.999.0-bot
Browse files Browse the repository at this point in the history
Fix #75639
  • Loading branch information
octref authored Sep 3, 2019
2 parents 14a3819 + b038107 commit ed4a732
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build/azure-pipelines/publish-types/publish-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@ steps:
inputs:
versionSpec: "1.x"

- bash: |
TAG_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
CHANNEL="G1C14HJ2F"
if [ "$TAG_VERSION" == "1.999.0" ]; then
MESSAGE="<!here>. Someone pushed 1.999.0 tag. Please delete it ASAP from remote and local."
curl -X POST -H "Authorization: Bearer $(SLACK_TOKEN)" \
-H 'Content-type: application/json; charset=utf-8' \
--data '{"channel":"'"$CHANNEL"'", "link_names": true, "text":"'"$MESSAGE"'"}' \
https://slack.com/api/chat.postMessage
exit 1
fi
displayName: Check 1.999.0 tag

- bash: |
# Install build dependencies
(cd build && yarn)
Expand Down

0 comments on commit ed4a732

Please sign in to comment.