Skip to content

Commit

Permalink
Improve GitHub action execution criteria (tag filters)
Browse files Browse the repository at this point in the history
Ensure that the GitHub Release action is only executed automatically on
release tags. For snapshot tags we run the action manually.
  • Loading branch information
André Gasser committed May 18, 2024
1 parent 5231821 commit 27f489c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ name: Release
on:
push:
tags:
# Run on any pushed tag like v2.0.0
# Run on any release tag formatted like v2.0.0
# Do not run on snapshot tags formatted like v2.0.0-20240518.225913
- 'v*.*.*'
- '!v*.*.*-**'
workflow_dispatch:
# Allows the GitHub action to be executed manually (we do this for snapshot builds by running this
# action on the master branch.

# Cancel any already running builds with that git reference
concurrency:
Expand Down

0 comments on commit 27f489c

Please sign in to comment.