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FysZSIOw5JHvhuS1dtdY4gl9e3Lc6ptkBrwiIMVw2j6ndqT+QuzRgpDMu00LQvpfx2B/RTZ/qed3Ap8K0Ebv6y1+nQD/HIqLwy5n4c+jugXAG728oF664WYYLDWlYHcYtu0PWeTPdkmlPmsZsm5DJz8PAXrU+bW9wqT+ibEoaKIHdRCQPb1LuJRAnpBOhgQ/UNwkVuBN/0vRb/h+1ILPhshALMpwjPggJ9buZr4moMfoiGovj4SRQVdmJJnGcx0rSrCArutEht21NA+qafpYFbGGLGAPZPKsd+WBqP24C07pND6S5ypfEbRhVfPA32OkbCPQezfnmkO5WJlfp6TcXXQM0ayQYDan4LDnQiHTOXQL+hkgzK2sychoH2amO0F5nF1SlOI4NHTJEyv0sayIe32oubUFxVV59OPN7BObgpqRuDIMaP17OhtS70eBnTnymeeZnWuPEEQtoro7Zy87Iz2JBx3eei4ZIS4Ls2ycZ39Xznl2M/73G8ibkMr5qCORV2RDjs39sIeqETHa1mULkkQzU+c=

@ -1,13 +1,13 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Don't deploy if commit contains WIP # Don't deploy if commit contains WIP
set -e set -e
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
if [[ $(git log -1 --pretty=%B --no-merges) != *"WIP"* ]]; then if [[ $(git log -1 --pretty=%B --no-merges) != *"WIP"* ]]; then
NOW_URL=$(now -e NODE_ENV=production --public --no-clipboard --team=dawn --token "$NOW_TOKEN") NOW_URL=$(now -e NODE_ENV=production --public --no-clipboard --team=dawn --token "$NOW_TOKEN")
curl -X POST \ curl -X POST \
-H 'Content-type: application/json' \ -H 'Content-type: application/json' \
--data "{\"text\": \":small_red_triangle: New Carbon PR Deployment for <https://github.com/dawnlabs/carbon/pulls/$TRAVIS_PULL_REQUEST|PR #$TRAVIS_PULL_REQUEST>\n:rocket: $NOW_URL\"}" \ --data "{\"text\": \":small_red_triangle: New Carbon PR Deployment for <https://github.com/dawnlabs/carbon/pulls/$TRAVIS_PULL_REQUEST|PR #$TRAVIS_PULL_REQUEST>\\n:rocket: $NOW_URL\"}" \
"$DAWN_SLACK_WEBHOOK" "$DAWN_SLACK_WEBHOOK"
fi fi
fi fi

Loading…
Cancel
Save