Limitation: The after_script is not executed if the job did not start at
all, i.e. if the user canceled the job before it got onto a runner.
See https://gitlab.com/groups/gitlab-org/-/epics/10158
(cherry picked from commit
33bc2628b78dd0a91c1ff644184628b184118588)
script:
- pip install git+https://gitlab.isc.org/isc-projects/hazard.git
- hazard
+ after_script:
+ # insist on running danger job even if user canceled it while it was running
+ - test "$CI_JOB_STATUS" != "canceled" && exit 0
+ - !reference [danger, script]
only:
refs:
- merge_requests