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 .
All checks were successful
continuous-integration/laminar-elessar Build 37 succeeded in 1 minute 31 seconds .
This commit is contained in:
parent
23be94ff5e
commit
b47c7e4cf7
1 changed files with 2 additions and 2 deletions
4
build
4
build
|
@ -195,9 +195,9 @@ task_ci() {
|
||||||
# FUTURE: We'll (eventually) want to call the package task here too
|
# FUTURE: We'll (eventually) want to call the package task here too
|
||||||
tasks_run build archive;
|
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;
|
tasks_run deploy;
|
||||||
else
|
else
|
||||||
echo "Not deploying, as this build wasn't on the master branch.";
|
echo "Not deploying, as this build wasn't on the master branch.";
|
||||||
|
|
Loading…
Reference in a new issue