ci: make the pipeline trigger on the default branch
So that we can deploy docs. In the process, replace "master" with CI_DEFAULT_BRANCH, so it does not break when we rename. Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7077>
This commit is contained in:
parent
f332f1b306
commit
c42e5e9a32
1 changed files with 3 additions and 1 deletions
|
|
@ -22,6 +22,8 @@ workflow:
|
|||
rules:
|
||||
# Run for merge requests
|
||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||
# Some things have to run in the default branch
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
# Run scheduled pipeline for autoupdate or manually triggered pipeline
|
||||
- if: $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"
|
||||
|
||||
|
|
@ -211,7 +213,7 @@ deploy-docs:
|
|||
project: postmarketOS/handbook
|
||||
strategy: depend
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_NAMESPACE == "postmarketOS"
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PROJECT_NAMESPACE == "postmarketOS"
|
||||
changes:
|
||||
- docs/**/*
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue