From cce54a0ee72b0749dc8dc13a6b185fe7db5582d7 Mon Sep 17 00:00:00 2001 From: MexIT Date: Sun, 5 Jan 2025 18:16:05 +0100 Subject: [PATCH] fix: Fix git tags --- .github/workflows/build_iso.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_iso.yml b/.github/workflows/build_iso.yml index 800ef0f..b273cda 100644 --- a/.github/workflows/build_iso.yml +++ b/.github/workflows/build_iso.yml @@ -25,6 +25,12 @@ jobs: with: fetch-depth: 0 + - name: Fetch missing git tags + if: ${{ startsWith(github.ref, 'refs/tags/v') }} + run: | + git config --global --add safe.directory . + git fetch --tags --force + - name: Download aports run: git clone --depth=1 https://gitlab.alpinelinux.org/alpine/aports.git @@ -65,8 +71,6 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: | - git config --global --add safe.directory . - git fetch --tags --force if git cat-file -t ${{ github.ref_name }} | grep -q '^tag$'; then git tag -n ${{ github.ref_name }} --format="### %(subject)" > changelog.txt else