From 6cb9382aa4b4a8a6260dc5509541e27f4ff39a1f Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Wed, 19 Jul 2023 07:47:22 +0200 Subject: ci: Allow running skipped jobs manually When a job is skipped because no code changed there is no way to run the job manually anymore. Fix this by adding an optional `manual` step to the pipeline for merge requests. --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f6b4c9cb8..719241b52 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -159,6 +159,9 @@ workflow: <<: *only_code_changes - if: '$CI_COMMIT_BRANCH =~ /^[\d-]+-stable$/' <<: *only_code_changes + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + when: manual + allow_failure: true .rules_run_on_merge: &rules_run_on_merge # We only execute these rules in the main Gitaly repository. This is -- cgit v1.2.3