Skip to content

Commit

Permalink
Try to get tags; fetch-tags option for checkout action basically doesn't
Browse files Browse the repository at this point in the history
work for shallow checkouts.
  • Loading branch information
uckelman committed Apr 14, 2024
1 parent 1b7596e commit b9d7028
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ jobs:
with:
fetch-depth: 1

- name: Get tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

- name: Set branch
if: github.ref != 'refs/heads/master' && github.ref != 'refs/heads/release-3.7'
# Checking out a detached head for PR means we have to set the branch
Expand Down

0 comments on commit b9d7028

Please sign in to comment.