We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8995f07 commit fbb1086Copy full SHA for fbb1086
.github/workflows/release.yml
@@ -23,13 +23,9 @@ jobs:
23
echo "Error: Version tag '${{ github.event.inputs.version }}' is not in the correct format (e.g., v1.2.3 or v1.2.3-beta.1)"
24
exit 1
25
fi
26
- - uses: actions/checkout@v4
27
- with:
28
- fetch-tags: true
29
-
30
- - name: Verify tag does not already exist
+ - name: Verify tag does not already exist by using ls-remote
31
run: |
32
- if git rev-parse "${{ github.event.inputs.version }}" >/dev/null 2>&1; then
+ if git ls-remote --tags ${{ github.server_url }}/${{ github.repository_owner }}/${{github.repository}} | grep -q "${{ github.event.inputs.version }}"; then
33
echo "Error: Tag '${{ github.event.inputs.version }}' already exists."
34
35
0 commit comments