]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Only run Danger if DANGER_GITLAB_API_TOKEN is set
authorMichał Kępień <michal@isc.org>
Wed, 3 Jun 2020 13:45:28 +0000 (15:45 +0200)
committerMichał Kępień <michal@isc.org>
Wed, 3 Jun 2020 13:51:15 +0000 (15:51 +0200)
Prevent the Danger GitLab CI job from failing when the GitLab API key to
use is not set.

(cherry picked from commit 2c90438583b4a7c44ec7be06ad93962f53faaabb)

.gitlab-ci.yml

index d994e2b359097779bad2623090bf266b8d872195..bb7b0031bb0f5d66b9a335b61c02ce64d44ad00b 100644 (file)
@@ -427,7 +427,10 @@ danger:
   script:
     - danger-python ci -f
   only:
-    - merge_requests
+    refs:
+      - merge_requests
+    variables:
+      - $DANGER_GITLAB_API_TOKEN
 
 flake8:
   <<: *default_triggering_rules