Skip to content

Commit ef1696d

Browse files
committed
refactor: simplify release workflow by removing unnecessary release event handling and directly using the tag name from the push event
1 parent 386c8af commit ef1696d

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Release
22

33
on:
4-
release:
5-
types: [created]
64
push:
75
tags:
86
- 'v*'
@@ -76,11 +74,7 @@ jobs:
7674
- name: Get tag name and check prerelease
7775
id: tag
7876
run: |
79-
if [ -n "${{ github.event.release.tag_name }}" ]; then
80-
TAG="${{ github.event.release.tag_name }}"
81-
else
82-
TAG="${{ github.ref_name }}"
83-
fi
77+
TAG="${{ github.ref_name }}"
8478
echo "tag=$TAG" >> $GITHUB_OUTPUT
8579
8680
VERSION="${TAG#v}"

0 commit comments

Comments
 (0)