]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Only run ci-orphaned-anchors on MR events
authorŠtěpán Balážik <stepan@isc.org>
Fri, 27 Jun 2025 18:27:14 +0000 (20:27 +0200)
committerŠtěpán Balážik <stepan@isc.org>
Sat, 28 Jun 2025 10:54:44 +0000 (10:54 +0000)
Now, it is also run in schedules and most annoyingly on push which means
that it is run twice on a push to a branch where a MR exists.

(cherry picked from commit 7ca18df58a328690f788a474aefbb73e053616db)

.gitlab-ci.yml

index 1635f90e2d89120bc63785cd4b06d0fcb79c0400..00a9bc61e2188af83dca2410986f697a376786a4 100644 (file)
@@ -619,7 +619,8 @@ ci-orphaned-anchors:
     - bind9-qa/ci-orphaned-anchors/check-orphaned-anchors-ci.py .gitlab-ci.yml
   needs: []
   rules:
-    - changes:
+    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
+      changes:
         - .gitlab-ci.yml
 
 clang-format: