We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b12bbd9 commit 21c7e2aCopy full SHA for 21c7e2a
.github/workflows/publish.yaml
@@ -50,9 +50,9 @@ jobs:
50
VERSION="${{ steps.get-version.outputs.VERSION }}"
51
52
# Extract the release channel (latest, alpha, beta, rc)
53
- if [[ $VERSION =~ ^v?(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-(.+))?$ ]]; then
54
- if [[ -n "${BASH_REMATCH[5]}" ]]; then
55
- CAPTURED_CHANNEL="${BASH_REMATCH[5]}"
+ if [[ $VERSION =~ ^v?[0-9]+\.[0-9]+\.[0-9]+(-(.+))?$ ]]; then
+ if [[ -n "${BASH_REMATCH[2]}" ]]; then
+ CAPTURED_CHANNEL="${BASH_REMATCH[2]}"
56
# The captured channel might have more dots, cases like
57
# v1.2.3-alpha.1 For such cases we only want the channel relevant
58
# part which is alpha.
0 commit comments