1
0
mirror of https://github.com/kami-blue/client synced 2025-01-27 01:02:50 +00:00

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

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"