From 6de5e9aa48871bc9ebfdc3393ee96c57089364e0 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Tue, 3 Jun 2025 21:26:55 +0200 Subject: [PATCH] chore(ci): use actions/checkout to fetch tags --- .gitea/workflows/release.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index af93a39..355fa43 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -2,8 +2,10 @@ name: Release on: push: - tags: - - "**" + branches: + - master + # tags: + # - "**" jobs: publish-chart: @@ -17,10 +19,14 @@ jobs: apk add git npm yq - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Add Artifacthub.io annotations run: | - git fetch --unshallow --tags --force + git tag + # git fetch --unshallow --tags --force NEW_TAG="$(git describe --abbrev=0)" OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")"