From 57f040d5e82f2a8c4bf16f178ea33d657700a204 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 6 Jun 2023 15:45:24 +0300 Subject: [PATCH] ci: Only run the Flatpak jobs if there's REPO_TOKEN set in the repo REPO_TOKEN is the authentication token to publish to the Nightly flatpak repository. And overwrite the publish_nightly rules again, since we need to append them to only run on schedules. --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f3542f980..35e3426fa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ include: "https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ .flatpak rules: rules: - - if: $CI_PIPELINE_SOURCE == "web" || $CI_PIPELINE_SOURCE == "schedule" + - if: $CI_COMMIT_BRANCH == "main" && $REPO_TOKEN && ($CI_PIPELINE_SOURCE == "web" || $CI_PIPELINE_SOURCE == "schedule") .vars-extension: extends: ".flatpak rules" @@ -21,9 +21,9 @@ flatpak-extension@aarch64: extends: [".flatpak@aarch64", ".vars-extension"] nightly@x86_64: - extends: ['.publish_nightly'] + extends: ['.publish_nightly', ".flatpak rules"] needs: ['flatpak-extension@x86_64'] nightly@aarch64: - extends: ['.publish_nightly'] + extends: ['.publish_nightly', ".flatpak rules"] needs: ['flatpak-extension@aarch64'] -- 2.47.2