We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48fd2fd commit a29e6f3Copy full SHA for a29e6f3
1 file changed
.github/workflows/publish-image-octane.yaml
@@ -23,6 +23,8 @@ jobs:
23
VERSION=edge
24
if [[ $GITHUB_REF == refs/tags/* ]]; then
25
VERSION=${GITHUB_REF#refs/tags/}
26
+ # Remove -o or -d suffix if present
27
+ VERSION=${VERSION%-*}
28
fi
29
MAJOR="$(echo "${VERSION}" | cut -d. -f1)"
30
MINOR="$(echo "${VERSION}" | cut -d. -f2)"
0 commit comments