fix(ci): do full clone to get tag history

This commit is contained in:
Luke Tainton 2025-01-01 01:20:21 +00:00
parent e8de18d5c3
commit bf8010d654
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo

View File

@ -31,9 +31,12 @@ jobs:
latesttag: ${{ steps.latesttag.outputs.latesttag }}
steps:
- uses: actions/checkout@v4.1.7
with:
fetch-depth: 0
- name: Get latest tag
id: latesttag
run: |
git checkout main
git fetch --tags
LATESTTAG=$(git -C ${{ gitea.workspace }} describe --tags --abbrev=0)
echo "latesttag=$LATESTTAG" >> "$GITEA_OUTPUT"