diff options
author | Stephen Finucane <stephenfin@redhat.com> | 2022-02-08 11:35:19 +0000 |
---|---|---|
committer | Stephen Finucane <stephenfinucane@hotmail.com> | 2022-02-08 11:44:04 +0000 |
commit | f5a07ec2ab0cc02e8f7e8011b3fdae4ed6c4802e (patch) | |
tree | 63c511fc2cf56c2d64f855d059159d10d5e4f300 | |
parent | f959638e24b7e37a8e2413a3f6435f6d273004f3 (diff) | |
download | fixtures-git-f5a07ec2ab0cc02e8f7e8011b3fdae4ed6c4802e.tar.gz |
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 <stephenfin@redhat.com>
-rw-r--r-- | .github/workflows/ci.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
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: |