fix(ci): do full clone to get tag history
This commit is contained in:
parent
e8de18d5c3
commit
bf8010d654
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user