fix hook script failing

This commit is contained in:
Bella 2020-03-10 10:09:07 -04:00
parent ce1e60e86a
commit 49238c943e
No known key found for this signature in database
GPG Key ID: 03B01AC937D1C89C
1 changed files with 4 additions and 4 deletions

View File

@ -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"