Skip to content

Commit 00d44b1

Browse files
committed
Update release.yml
1 parent 93c8b3c commit 00d44b1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
dry-run:
1010
description: Perform a dry run without creating a release
1111
required: false
12-
default: false
12+
default: true
1313
type: boolean
1414

1515
jobs:
@@ -33,6 +33,13 @@ jobs:
3333
exit 1
3434
fi
3535
36+
- name: Verify tag does not already exist
37+
run: |
38+
if git rev-parse "${{ github.event.inputs.version }}" >/dev/null 2>&1; then
39+
echo "Error: Tag '${{ github.event.inputs.version }}' already exists."
40+
exit 1
41+
fi
42+
3643
- name: Setup Node.js
3744
uses: actions/setup-node@v4
3845
with:

0 commit comments

Comments
 (0)