Skip to content

Commit 2bf6d23

Browse files
committed
Fetch full history in Python CI workflow
Set `fetch-depth: 0` on the checkout step in `.github/workflows/python-package.yml` so the workflow has complete git history when running against release tags (including `workflow_dispatch` tag refs). This avoids shallow-clone limitations in downstream release/versioning steps.
1 parent 4fb1d18 commit 2bf6d23

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎.github/workflows/python-package.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
uses: actions/checkout@v6
6161
with:
6262
ref: ${{ github.event_name == 'workflow_dispatch' && format('refs/tags/{0}', inputs.release_tag) || github.ref }}
63+
fetch-depth: 0
6364

6465
- name: Set up Python
6566
uses: actions/setup-python@v6

0 commit comments

Comments
 (0)