1
0
mirror of https://github.com/kami-blue/client synced 2025-04-11 04:01:38 +00:00

formatting for sending branch name

This commit is contained in:
Bella 2020-03-10 09:56:27 -04:00
parent 89a4022476
commit 29108eaef9
No known key found for this signature in database
GPG Key ID: 03B01AC937D1C89C

View File

@ -3,5 +3,5 @@ CURDIR="$(readlink -f ./build/libs/)"
JARDIR="$(ls "$CURDIR" | grep "release")"
BRANCH="$(git branch | grep "*")"
BRANCH="${BRANCH:2}"
curl -H "Content-Type: application/json" -X POST -d '{"username": "Github Actions", "content": "Branch: '$BRANCH'"}' "$WEBHOOK"
curl -H "Content-Type: application/json" -X POST -d '{"username": "Github Actions", "content": "**Branch:** `'$BRANCH'`"}' "$WEBHOOK"
curl -F content=@""$DIR"/"$JARDIR"" "$WEBHOOK"