static_tests.sh: only default to master when not in a GitHub action
This commit is contained in:
parent
512c92ffb1
commit
40d72df91f
4
dist/tools/ci/static_tests.sh
vendored
4
dist/tools/ci/static_tests.sh
vendored
@ -95,7 +95,11 @@ if [ -n "${CI_BASE_COMMIT}" ]; then
|
||||
git tag "${CI_BASE_BRANCH}" "${CI_BASE_COMMIT}"
|
||||
fi
|
||||
|
||||
if [ -z "${GITHUB_RUN_ID}" ]; then
|
||||
# only default to master when not running in a GitHub action
|
||||
# (so GitHub can check release branches too)
|
||||
CI_BASE_BRANCH=${CI_BASE_BRANCH:-master}
|
||||
fi
|
||||
|
||||
export BASE_BRANCH="${CI_BASE_BRANCH}"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user