From 7017afbddd5650da693118dfed7f56ce983de4c5 Mon Sep 17 00:00:00 2001 From: Agustin Tena Date: Sun, 28 Aug 2022 10:08:04 +0200 Subject: [PATCH] chore: fix release ci (#36) add tag checkout in release ci --- .github/workflows/ci-release.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-release.yaml b/.github/workflows/ci-release.yaml index ef2aba0..2abe14c 100644 --- a/.github/workflows/ci-release.yaml +++ b/.github/workflows/ci-release.yaml @@ -9,7 +9,15 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - # if the action is a push, diff with the previous main commit + # fetch tags + - name: Checkout tags + run: | + if git rev-parse --is-shallow-repository | grep -q 'true'; then + git fetch --prune --unshallow --tags -f + else + git fetch --prune --tags -f + fi + # diff with the previous tag - name: Build changelog id: build_changelog run: |