diff --git a/.github/not-on-master.sh b/.github/not-on-master.sh index fc9ccc8fc0..b2bd8536de 100755 --- a/.github/not-on-master.sh +++ b/.github/not-on-master.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -if [ "${GITHUB_REF}" == "master" ]; then +if [ "${GITHUB_REF_NAME}" == "master" ]; then echo "Skipping this step on master..." else exec "$@" diff --git a/.github/workflows/build_test_deploy.yml b/.github/workflows/build_test_deploy.yml index 5176540efa..b7be8e1923 100644 --- a/.github/workflows/build_test_deploy.yml +++ b/.github/workflows/build_test_deploy.yml @@ -128,7 +128,7 @@ jobs: - name: Build webknossos (sbt) run: | - if [ "${{ github.ref }}" == "refs/heads/master" ]; then + if [ "${{ github.ref_name }}" == "master" ]; then sbt -no-colors clean compile stage else sbt -no-colors -DfailOnWarning compile stage