Properly detect branch name using the git-repo environment variable
All checks were successful
continuous-integration/laminar-elessar Build 37 succeeded in 1 minute 31 seconds .

This commit is contained in:
Starbeamrainbowlabs 2019-03-29 00:05:05 +00:00
parent 23be94ff5e
commit b47c7e4cf7
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

4
build
View file

@ -195,9 +195,9 @@ task_ci() {
# FUTURE: We'll (eventually) want to call the package task here too
tasks_run build archive;
echo "[DEBUG] '$(git rev-parse --abbrev-ref HEAD)' / 'master'";
echo "[DEBUG] '${GIT_REF_NAME}' / 'master'";
if [ "$(git rev-parse --abbrev-ref HEAD)" == "master" ]; then
if [ "${GIT_REF_NAME}" == "refs/heads/master" ]; then
tasks_run deploy;
else
echo "Not deploying, as this build wasn't on the master branch.";