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.16.4~23^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=a63c88953ab4880dd12ca807c2c24d71822a2beb;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. (cherry picked from commit 2c90438583b4a7c44ec7be06ad93962f53faaabb) --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d994e2b3590..bb7b0031bb0 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