diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 2b617fa..697cf0f 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -15,13 +15,13 @@ jobs: run: | apk update apk add git npm yq + - uses: actions/checkout@v4 - with: - fetch-depth: 0 - fetch-tags: true - name: Add Artifacthub.io annotations run: | + git fetch --prune --unshallow --tags + NEW_TAG="$(git describe --abbrev=0)" OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")"