]> 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>
Fri, 27 Jun 2025 18:27:14 +0000 (20:27 +0200)
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.

.gitlab-ci.yml

index e02e19c94a7c5ba065edd43fd82f4d8627ca1b89..e47e2e6eef92eee9014cd89f229ccd84c35e99cc 100644 (file)
@@ -561,7 +561,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: