From: Michał Kępień Date: Wed, 3 Jun 2020 13:45:28 +0000 (+0200) Subject: Only run Danger if DANGER_GITLAB_API_TOKEN is set X-Git-Tag: v9.17.2~29^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c90438583b4a7c44ec7be06ad93962f53faaabb;p=thirdparty%2Fbind9.git Only run Danger if DANGER_GITLAB_API_TOKEN is set Prevent the Danger GitLab CI job from failing when the GitLab API key to use is not set. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bad15c639a3..a02f33d4f1d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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