mirror of https://github.com/kami-blue/client
send branch name on push
This commit is contained in:
parent
a8443cb339
commit
89a4022476
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
DIR="$(readlink -f ./build/libs/)"
|
||||
JARDIR="$(ls "$DIR" | grep "release")"
|
||||
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 -F content=@""$DIR"/"$JARDIR"" "$WEBHOOK"
|
||||
#echo ""$DIR"/"$UWUOWO""
|
||||
|
|
Loading…
Reference in New Issue