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 2b5e085 commit 0dcf8f2Copy full SHA for 0dcf8f2
.github/actions/get-image-tag/action.yml
@@ -66,8 +66,15 @@ runs:
66
shell: bash
67
env:
68
tag: ${{ steps.get_tag.outputs.tag }}
69
+ # Will match most semver formats except build metadata, i.e. v1.2.3+build.1
70
+ # Valid matches:
71
+ # v1.2.3
72
+ # v1.2.3-alpha
73
+ # v1.2.3-alpha.1
74
+ # v1.2.3-rc.1
75
+ # v1.2.3-beta-1
76
run: |
- if [[ "${tag}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+)?$ ]]; then
77
+ if [[ "${tag}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$ ]]; then
78
echo "Tag is a semantic version: ${tag}"
79
is_semver=true
80
else
0 commit comments