From f5a07ec2ab0cc02e8f7e8011b3fdae4ed6c4802e Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 8 Feb 2022 11:35:19 +0000 Subject: Clone entire repo for CI The "Checkout" action defaults to a shallow clone, checking out a HEAD. This borks pbr (and likely similar packages like 'setuptools_scm') since they don't have the full history to build a version number from. Fix this by configuring the 'fetch_depth' setting [1]. [1] https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches Signed-off-by: Stephen Finucane --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3ed72c4..105aec1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,6 +13,8 @@ jobs: steps: - name: Checkout source code uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Set up Python ${{ matrix.python }} uses: actions/setup-python@v2 with: -- cgit v1.2.1