Skip to content

Commit

Permalink
explicit fetch tags
Browse files Browse the repository at this point in the history
  • Loading branch information
luttje committed Dec 1, 2024
1 parent 7abfdf2 commit 59235cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ jobs:
- name: Store the latest tag in a variable
id: get_tag
run: |
latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1))
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
latest_tag=$(git describe --abbrev=0 --tags)
echo "LATEST_TAG=$latest_tag" >> $GITHUB_ENV
echo "Latest tag is $LATEST_TAG"
Expand Down

0 comments on commit 59235cb

Please sign in to comment.