Skip to content

Commit 108973b

Browse files
committed
fix(gh-action): do not run git fetch --tags on pushed tags
1 parent a5e65b5 commit 108973b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
with:
2424
ssh-key: "${{ secrets.NIPREPS_DEPLOY }}"
2525
- name: Fetch all tags (for setuptools_scm to work)
26+
if: github.ref == 'refs/heads/master'
2627
run: |
2728
/usr/bin/git -c protocol.version=2 fetch --tags --prune --unshallow origin
2829
- name: Set up Python ${{ matrix.python-version }}

0 commit comments

Comments
 (0)