Skip to content

Commit

Permalink
chore(ci): change github release creation trigger to tag creation (#1526
Browse files Browse the repository at this point in the history
)
  • Loading branch information
BartoszCiesla authored Feb 13, 2025
1 parent ba92ea6 commit 0d9ca75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release_server.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: release_server

on:
push:
create:
tags:
- 'server-*'

Expand All @@ -19,12 +19,12 @@ jobs:
- name: Check if trigger was a tag creation
id: trigger
run: |
if [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == refs/tags/server-* ]];
if [[ "${{ github.event.ref_type }}" == "tag" && "${{ github.ref }}" == refs/tags/server-* ]];
then
echo "This push was a tag creation."
echo "This event was a tag creation."
echo "release=true" >> "$GITHUB_OUTPUT"
else
echo "This push was not a tag creation."
echo "This event was not a tag creation."
echo "release=false" >> "$GITHUB_OUTPUT"
fi
outputs:
Expand Down

0 comments on commit 0d9ca75

Please sign in to comment.