From 0c146ee401b364a8fcad21b2014805fc34688cfd Mon Sep 17 00:00:00 2001 From: Christine Wang Date: Mon, 24 Feb 2025 13:26:47 -0800 Subject: [PATCH] chore(ci): skip fetch tags if tag is not present --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cb0a6a9be..c0f6e8fdb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -65,6 +65,7 @@ jobs: cache-suffix: 3.${{ matrix.python }} - name: Fetch tags + if: ${{ inputs.release-tag || startsWith(github.ref, 'refs/tags/') }} run: | git branch git fetch --depth=1 origin +refs/tags/*:refs/tags/*