signald-go/debian/get-branch.sh

8 lines
197 B
Bash
Raw Permalink Normal View History

2021-02-27 20:29:07 +00:00
#!/bin/bash -e
if [ -z ${CI_COMMIT_REF_NAME+x} ]; then
# CI_COMMIT_REF_NAME is unset, try to derive it from git
git rev-parse --abbrev-ref HEAD
else
echo "${CI_COMMIT_REF_NAME}"
fi