From 60fa35f11eba7422119d76dc72e15f315786a37c Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Mon, 10 Aug 2020 15:12:28 -0700 Subject: [PATCH] Fix DCO commit limit Signed-off-by: Derek McGowan --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79b834b87..0d45b4ea3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,7 +81,7 @@ jobs: uses: actions/checkout@v2 with: path: src/github.com/containerd/containerd - fetch-depth: 25 + fetch-depth: 100 - name: Checkout project repo uses: actions/checkout@v2 @@ -114,7 +114,7 @@ jobs: if [ -z "${GITHUB_COMMIT_URL}" ]; then DCO_RANGE=$(jq -r '.after + "..HEAD"' ${GITHUB_EVENT_PATH}) else - DCO_RANGE=$(curl ${GITHUB_COMMIT_URL} | jq -r '.[0].parents[0].sha +".."+ .[-1].sha') + DCO_RANGE=$(curl ${GITHUB_COMMIT_URL} | jq -r '.[0].parents[0].sha + "..HEAD"') fi ../project/script/validate/dco