Skip to content

Commit d8c738d

Browse files
committed
Set release fetch-depth to 0 with a comment why
1 parent 751c661 commit d8c738d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ jobs:
3030
# See
3131
# https://github.com/stefanzweifel/git-auto-commit-action?tab=readme-ov-file#push-to-protected-branches
3232
token: ${{ secrets.RELEASE_PAT }}
33+
# Fetch all history including tags.
34+
# Needed to find the latest tag.
35+
#
36+
# Also, avoids
37+
# https://github.com/stefanzweifel/git-auto-commit-action/issues/99.
38+
fetch-depth: 0
3339

3440
- name: Install uv
3541
uses: astral-sh/setup-uv@v5

0 commit comments

Comments
 (0)