]> 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:45:28 +0000 (15:45 +0200)
Prevent the Danger GitLab CI job from failing when the GitLab API key to
use is not set.

.gitlab-ci.yml

index bad15c639a36be35af2b6d51258c211c7481ff29..a02f33d4f1d4c95e3800a4b1737918bb7f108580 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