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:
Pablo Correa Gómez
2025-09-25 19:55:33 +00:00
committed by The Friendly Merge Bot
parent f332f1b306
commit c42e5e9a32
+3 -1
View File
@@ -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/**/*