Skip to content

Commit a532951

Browse files
Clone whole repo for tag metadata (#70)
This PR fixes a warning that occurs during the release build by cloning the repo with all history. ``` /home/runner/work/_temp/setup-uv-cache/.../lib/python3.12/site-packages/setuptools_scm/git.py:202: UserWarning: "/home/runner/work/aurora-dsql-django/aurora-dsql-django" is shallow and may cause errors ``` I think the warning is harmless in practice since the tag information is able to be retrieved based on the successful release, but this should prevent the warning and any future potential issues. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 79113c6 commit a532951

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/cicd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
steps:
2424
- name: Checkout code
2525
uses: actions/checkout@v5
26+
with:
27+
fetch-depth: 0
2628
- name: Install uv
2729
uses: astral-sh/setup-uv@v6
2830
- name: Build

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
- uses: actions/checkout@v5
3333
with:
3434
persist-credentials: false
35+
fetch-depth: 0
3536
- name: Install uv
3637
uses: astral-sh/setup-uv@v6
3738
- name: Build

0 commit comments

Comments
 (0)