Commit 10cbc3d9 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch 'use-ci_default_branch-in-gitlab-ci-yml' into 'master'

Use $CI_DEFAULT_BRANCH instead of 'master'

See merge request gitlab-org/gitlab!29915
parents 171070a9 8cd6a102
...@@ -28,7 +28,7 @@ workflow: ...@@ -28,7 +28,7 @@ workflow:
# For merge requests, create a pipeline. # For merge requests, create a pipeline.
- if: '$CI_MERGE_REQUEST_IID' - if: '$CI_MERGE_REQUEST_IID'
# For `master` branch, create a pipeline (this includes on schedules, pushes, merges, etc.). # 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. # For tags, create a pipeline.
- if: '$CI_COMMIT_TAG' - if: '$CI_COMMIT_TAG'
# If `$GITLAB_INTERNAL` isn't set, don't create a pipeline. # 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