From 6882309b1a864d0720b3c8c664b96c7b0609e5e3 Mon Sep 17 00:00:00 2001 From: Eddie A Tejeda <669988+eddietejeda@users.noreply.github.com> Date: Wed, 20 May 2026 09:52:40 -0700 Subject: [PATCH] fix: validate release tag format before checkout only Checkout already fails for missing tags; drop git ls-remote which ran before the repository was available in workflow_dispatch runs. --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2002844..084f57a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: env: RELEASE_TAG: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || github.ref_name }} steps: - - name: Validate release tag + - name: Validate release tag format if: github.event_name == 'workflow_dispatch' run: | set -euo pipefail @@ -30,11 +30,11 @@ jobs: echo "tag must look like vX.Y.Z, got: $tag" >&2 exit 1 fi - git ls-remote --exit-code origin "refs/tags/${tag}" >/dev/null - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: ref: ${{ env.RELEASE_TAG }} + fetch-depth: 0 - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 with: