From c6b0b91872b6c9128f46f5c79495648689f1c800 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Thu, 11 Mar 2021 10:15:50 +0000 Subject: [PATCH] ci: increase fetch-depth to 2 Codecov apparently has trouble detecting the git commit if the fetch depth is only 1 (the default). Therefore increase it. See https://github.com/codecov/codecov-action/issues/190 for more details. --- .github/workflows/tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 89c37fda4..691bd06d4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,6 +21,8 @@ jobs: steps: - name: "Clone Repository" uses: actions/checkout@v2 + with: + fetch-depth: 2 # codecov requires this (https://github.com/codecov/codecov-action/issues/190) - name: "Run Tests" uses: osbuild/containers/src/actions/privdocker@e4de123f43b95e99dfe8eed0bd5a1cd58db50715 with: