forked from RepoMirrors/kami-blue
change how hookname greps the branch
This commit is contained in:
parent
c9e3bc67bd
commit
3f25cafc40
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
BRANCH="$(git branch | grep "*")"
|
||||
BRANCH="${BRANCH:2}"
|
||||
BRANCH="$(git branch | grep '^\*')"
|
||||
BRANCH="${BRANCH#??}"
|
||||
curl -H "Content-Type: application/json" -X POST -d '{"username": "Github Actions", "content": "**Branch:** `'$BRANCH'`"}' "$WEBHOOK"
|
||||
|
|
Loading…
Reference in New Issue