use travis branch var instead

This commit is contained in:
Bella 2020-03-10 11:49:20 -04:00
parent 2743a3479d
commit b6a450cf86
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
BRANCH="$(git branch 2>/dev/null | grep '^*' | colrm 1 2)"
echo "'$BRANCH'"
curl -H "Content-Type: application/json" -X POST -d '{"username": "Github Actions", "content": "**Branch:** '$BRANCH'"}' "$WEBHOOK"
#BRANCH="$(git branch 2>/dev/null | grep '^*' | colrm 1 2)"
#echo "'$BRANCH'"
curl -H "Content-Type: application/json" -X POST -d '{"username": "Github Actions", "content": "**Branch:** '$TRAVIS_BRANCH'"}' "$WEBHOOK"