Commit 8cd6a102 authored by Rémy Coutable's avatar Rémy Coutable

Use $CI_DEFAULT_BRANCH instead of 'master'

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent fe23bdab
......@@ -28,7 +28,7 @@ workflow:
# For merge requests, create a pipeline.
- if: '$CI_MERGE_REQUEST_IID'
# For `master` branch, create a pipeline (this includes on schedules, pushes, merges, etc.).
- if: '$CI_COMMIT_BRANCH == "master"'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
# For tags, create a pipeline.
- if: '$CI_COMMIT_TAG'
# If `$GITLAB_INTERNAL` isn't set, don't create a pipeline.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment