Skip to content

Commit 0d9ca75

Browse files
authoredFeb 13, 2025··
chore(ci): change github release creation trigger to tag creation (#1526)
1 parent ba92ea6 commit 0d9ca75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎.github/workflows/release_server.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: release_server
22

33
on:
4-
push:
4+
create:
55
tags:
66
- 'server-*'
77

@@ -19,12 +19,12 @@ jobs:
1919
- name: Check if trigger was a tag creation
2020
id: trigger
2121
run: |
22-
if [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == refs/tags/server-* ]];
22+
if [[ "${{ github.event.ref_type }}" == "tag" && "${{ github.ref }}" == refs/tags/server-* ]];
2323
then
24-
echo "This push was a tag creation."
24+
echo "This event was a tag creation."
2525
echo "release=true" >> "$GITHUB_OUTPUT"
2626
else
27-
echo "This push was not a tag creation."
27+
echo "This event was not a tag creation."
2828
echo "release=false" >> "$GITHUB_OUTPUT"
2929
fi
3030
outputs:

0 commit comments

Comments
 (0)
Please sign in to comment.