1
0
mirror of https://github.com/kami-blue/client synced 2025-04-22 23:35:16 +00:00
kami-blue/scripts/hook.sh
2020-03-10 10:06:58 -04:00

8 lines
331 B
Bash
Executable File

#!/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"