Explorar o código

gitlab-ci: port scheduled pipeline logic to the single rules block

Co-authored-by: Brad King <[email protected]>
Ben Boeckel hai 1 mes
pai
achega
2b944b7b26
Modificáronse 1 ficheiros con 5 adicións e 4 borrados
  1. 5 4
      .gitlab/rules.yml

+ 5 - 4
.gitlab/rules.yml

@@ -179,16 +179,17 @@ workflow:
         - if: '$CI_MERGE_REQUEST_ID'
           when: on_success
 
-.run_manually:
-    rules:
+        ### Scheduled pipelines.
+        # Scheduled pipelines run all jobs automatically when ready.
         - if: '$CI_PIPELINE_SOURCE == "schedule"'
           when: on_success
+
+.run_manually:
+    rules:
         - when: manual
 
 .run_automatically:
     rules:
-        - if: '$CI_PIPELINE_SOURCE == "schedule"'
-          when: on_success
         - when: delayed
           start_in: 5 minutes