From c42e5e9a320433d12cfbe0dbebc6fe1c9052d894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Wed, 24 Sep 2025 14:45:47 +0200 Subject: [PATCH] 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: --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2157e6389..206155b6d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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/**/*