Skip to content

Commit 262165d

Browse files
authored
Merge pull request #72 from hotdata-dev/fix/release-dispatch-checkout
fix: release workflow dispatch checkout
2 parents 5a313de + 6882309 commit 262165d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
env:
2222
RELEASE_TAG: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || github.ref_name }}
2323
steps:
24-
- name: Validate release tag
24+
- name: Validate release tag format
2525
if: github.event_name == 'workflow_dispatch'
2626
run: |
2727
set -euo pipefail
@@ -30,11 +30,11 @@ jobs:
3030
echo "tag must look like vX.Y.Z, got: $tag" >&2
3131
exit 1
3232
fi
33-
git ls-remote --exit-code origin "refs/tags/${tag}" >/dev/null
3433
3534
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3635
with:
3736
ref: ${{ env.RELEASE_TAG }}
37+
fetch-depth: 0
3838

3939
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
4040
with:

0 commit comments

Comments
 (0)