From a39d340c187954abdf251dff2c9c45dd22d4e885 Mon Sep 17 00:00:00 2001 From: Peter Paul Bakker Date: Tue, 7 May 2024 20:50:45 +0200 Subject: [PATCH] release: git fetch all tag with force to avoid "would clobber existing tag" --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 60e488df..a328b4ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,7 @@ jobs: # if no tag exists, this is expected to fail - name: Switch to git tag for release run: | - git fetch --all --tags + git fetch --all --tags -f git checkout tags/${{ env.TAG_NAME }} -b ${{ env.TAG_NAME }}-tmp-branch - name: Set up JDK 11