ci: Wait for 'check-commit-log' before continuing

The check-commit-log is quick, and to get a result early is helpful as
one can then more quickly check for failures via the report provided via
the JUnit report.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/141>
This commit is contained in:
Jonas Ådahl
2020-11-06 18:07:07 +01:00
committed by Florian Müllner
parent a7939f18d1
commit b64c93897b
2 changed files with 4 additions and 5 deletions

View File

@@ -19,8 +19,7 @@ check_commit_log:
stage: review
script:
- ./.gitlab-ci/check-commit-log.sh
only:
- merge_requests
<<: *only_default
artifacts:
expire_in: 1 week
paths:
@@ -52,7 +51,7 @@ eslint:
build-bundles:
stage: build
needs: []
needs: ["check_commit_log"]
script:
- ./export-zips.sh
<<: *only_default

View File

@@ -1,8 +1,8 @@
#!/usr/bin/env bash
if [ -z "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" ]; then
echo Cannot review non-merge request
exit 1
echo This is not a merge request, skipping
exit 0
fi
git fetch $CI_MERGE_REQUEST_PROJECT_URL.git $CI_MERGE_REQUEST_TARGET_BRANCH_NAME