]> 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:54:12 +0000 (15:54 +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 ff62185a165b7d7eb087cd79b4c8dec464708240..e14eff056187e495b3270a49d2a065d39ecaa3fd 100644 (file)
@@ -428,7 +428,10 @@ danger:
   script:
     - danger-python ci -f
   only:
-    - merge_requests
+    refs:
+      - merge_requests
+    variables:
+      - $DANGER_GITLAB_API_TOKEN
 
 flake8:
   <<: *default_triggering_rules