Skip to content

Commit 1470d0f

Browse files
committed
ci: removing default branch hard coding
1 parent 383f5a6 commit 1470d0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ formatting:
4141
- earthly --ci +check-formatting
4242
rules:
4343
- if: $CI_MERGE_REQUEST_ID
44-
- if: $CI_COMMIT_BRANCH == "master"
44+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
4545

4646

4747
linting:
@@ -50,7 +50,7 @@ linting:
5050
- earthly --ci +linting
5151
rules:
5252
- if: $CI_MERGE_REQUEST_ID
53-
- if: $CI_COMMIT_BRANCH == "master"
53+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
5454

5555

5656
compiling:
@@ -59,7 +59,7 @@ compiling:
5959
- earthly --ci +compiling
6060
rules:
6161
- if: $CI_MERGE_REQUEST_ID
62-
- if: $CI_COMMIT_BRANCH == "master"
62+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
6363

6464

6565
unit-testing:
@@ -68,4 +68,4 @@ unit-testing:
6868
- earthly --ci +unit-testing
6969
rules:
7070
- if: $CI_MERGE_REQUEST_ID
71-
- if: $CI_COMMIT_BRANCH == "master"
71+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

0 commit comments

Comments
 (0)