kami-blue/scripts/hookName.sh

4 lines
205 B
Bash
Raw Normal View History

2020-03-10 02:31:51 +00:00
#!/bin/bash
2020-03-10 15:39:08 +00:00
BRANCH="$(git branch 2>/dev/null | grep '^*' | colrm 1 2)"
2020-03-10 14:09:07 +00:00
curl -H "Content-Type: application/json" -X POST -d '{"username": "Github Actions", "content": "**Branch:** `'$BRANCH'`"}' "$WEBHOOK"