mirror of https://github.com/kami-blue/client
fix hook script failing
This commit is contained in:
parent
ce1e60e86a
commit
49238c943e
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
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"
|
||||
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=@""$CURDIR"/"$JARDIR"" "$WEBHOOK"
|
||||
|
|
Loading…
Reference in New Issue