chore(ci): enforce to checkout git tag

This commit is contained in:
Markus Pesch 2025-06-03 20:46:41 +02:00
parent 6425930268
commit efa145f128
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -20,7 +20,7 @@ jobs:
- name: Add Artifacthub.io annotations - name: Add Artifacthub.io annotations
run: | run: |
git fetch --unshallow --tags git fetch --unshallow --tags --force
NEW_TAG="$(git describe --abbrev=0)" NEW_TAG="$(git describe --abbrev=0)"
OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")" OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")"