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

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
1 changed files with 2 additions and 2 deletions

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.";