Skip to content

Commit

Permalink
infra: Fix gh actions semver regex
Browse files Browse the repository at this point in the history
Signed-off-by: Quique Llorente <ellorent@redhat.com>
  • Loading branch information
qinqon committed Nov 30, 2021
1 parent 64ab9d0 commit 0ea01fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: release

on:
push:
tags: # From https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
- '^(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)(?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

jobs:
goreleaser:
Expand Down

0 comments on commit 0ea01fc

Please sign in to comment.