Skip to content

Commit

Permalink
fix(ci): fix regex matching
Browse files Browse the repository at this point in the history
  • Loading branch information
gluax committed Nov 1, 2023
1 parent 9c4fe18 commit c3d515e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@ name: Release
on:
push:
tags:
# SemVer regex taken from https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
# Added option to start with a v for cases like v0.0.1
- "[0-9]+.[0-9]+.[0-9]+-rc"
- "[0-9]+.[0-9]+.[0-9]+-alpha"
- "[0-9]+.[0-9]+.[0-9]+-beta"
# SemVer regex taken from https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
# Added option to start with a v for cases like v0.0.1
- "[0-9]+.[0-9]+.[0-9]+-rc[0-9]*"
- "[0-9]+.[0-9]+.[0-9]+-alpha[0-9]*"
- "[0-9]+.[0-9]+.[0-9]+-beta[0-9]*"
- "[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-rc"
- "v[0-9]+.[0-9]+.[0-9]+-alpha"
- "v[0-9]+.[0-9]+.[0-9]+-beta"
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]*"
- "v[0-9]+.[0-9]+.[0-9]+-alpha[0-9]*"
- "v[0-9]+.[0-9]+.[0-9]+-beta[0-9]*"
- "v[0-9]+.[0-9]+.[0-9]+"


concurrency:
group: ci-${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
Expand Down

0 comments on commit c3d515e

Please sign in to comment.