Skip to content

Commit 5e968d2

Browse files
chore(ci): skip fetch tags if tag is not present (#627)
1 parent beab5be commit 5e968d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
cache-suffix: 3.${{ matrix.python }}
6666

6767
- name: Fetch tags
68+
if: ${{ inputs.release-tag || startsWith(github.ref, 'refs/tags/') }}
6869
run: |
6970
git branch
7071
git fetch --depth=1 origin +refs/tags/*:refs/tags/*

0 commit comments

Comments
 (0)