ci: Run the fedora CI job on merges as well as branches

Since it now has to build the docs (and code coverage) for `main`, that
needs to happen after branches are merged.

Other jobs remain not-run on merges.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3037
This commit is contained in:
Philip Withnall 2023-12-12 14:59:02 +00:00
parent 5400094ab0
commit 2a1be27431

View File

@ -33,6 +33,15 @@ variables:
variables:
- $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PROJECT_NAMESPACE == "GNOME"
# As above, but does get executed on merge into `origin/main`. For use with
# updating code coverage results and docs builds.
.only-default-and-merges:
only:
- branches
except:
refs:
- tags
# Some jobs run on CI runners which dont have good isolation between CI jobs,
# and dont have much available resource. Limit those jobs to only ones on the
# origin repository (GNOME/glib), rather than peoples forks. Code in the origin
@ -103,7 +112,7 @@ style-check-mandatory:
fedora-x86_64:
extends:
- .build-linux
- .only-default
- .only-default-and-merges
image: $FEDORA_IMAGE
stage: build
needs: []