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 }}
|
latesttag: ${{ steps.latesttag.outputs.latesttag }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.1.7
|
- uses: actions/checkout@v4.1.7
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: Get latest tag
|
- name: Get latest tag
|
||||||
id: latesttag
|
id: latesttag
|
||||||
run: |
|
run: |
|
||||||
|
git checkout main
|
||||||
git fetch --tags
|
git fetch --tags
|
||||||
LATESTTAG=$(git -C ${{ gitea.workspace }} describe --tags --abbrev=0)
|
LATESTTAG=$(git -C ${{ gitea.workspace }} describe --tags --abbrev=0)
|
||||||
echo "latesttag=$LATESTTAG" >> "$GITEA_OUTPUT"
|
echo "latesttag=$LATESTTAG" >> "$GITEA_OUTPUT"
|
||||||
|
Loading…
Reference in New Issue
Block a user