blob: 135d410c6e7e9e8c29aa4af26431fb968aff9f81 [file] [log] [blame]
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00001#!/bin/sh
2
3# SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com>
4#
5# SPDX-License-Identifier: MIT
6
7set -e
8
9# shellcheck disable=SC1091
10. /utils.sh
11
12GIT_REPO_PATH="/work"
13
14[ -n "$BASE_REF" ] ||
15 error "DCO checks needs to know the target branch. Make sure that is set in BASE_REF."
16[ -d "$GIT_REPO_PATH/.git" ] ||
17 error "Can't find a git checkout under $GIT_REPO_PATH ."
18cd "$GIT_REPO_PATH"
19dco-check \
20 --verbose \
21 --default-branch "origin/$BASE_REF"