Skip to content

Commit 5bcc8ba

Browse files
authored
Fix issue where the OCI images tag should not contain v. Closes #210
1 parent 21b5ad9 commit 5bcc8ba

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,16 @@ jobs:
2929
run: |-
3030
ls -la .
3131
32+
- name: Sanitize Version
33+
run: |-
34+
echo $VERSION
35+
trim=${VERSION#"v"}
36+
echo $trim
37+
echo "VERSION=${trim}" >> $GITHUB_ENV
38+
3239
- name: Validate Version
3340
run: |-
34-
if [[ $VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-.+)?$ ]]; then
41+
if [[ $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+(-.+)?$ ]]; then
3542
echo "Version OK: $VERSION"
3643
else
3744
echo "Invalid version: $VERSION"

0 commit comments

Comments
 (0)