From b2ca0a1ab4d9b3351cfdee3a8cfc3fcd048be5c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=2C=20Lin=29?= Date: Sun, 26 Nov 2023 16:29:50 +0800 Subject: [PATCH] fix: Attempt to workaround actions/checkout#1467 (2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently, the checkout GitHub Action failed to check out when both `fetch-depth` and `fetch-tags` are specified during a tag push event(actions/checkout#1467). This patch workarounds the issue by manually do the tag fetch afterwards. Refer-to: Can't fetch with `fetch-tags` when triggered by tag · Issue #1467 · actions/checkout Refer-to: Switch back to an improved manual tag fetching method · wxFormBuilder/wxFormBuilder@459563b Signed-off-by: 林博仁(Buo-ren, Lin) --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f83e0e2..4fc9d02 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,6 +35,8 @@ jobs: run: |- git fetch \ --prune \ + --prune-tags \ + --force \ --depth=1 \ --no-recurse-submodules