diff --git a/.github/workflows/build-images.yaml b/.github/workflows/build-images.yaml index 88ca1aee..f85691d9 100644 --- a/.github/workflows/build-images.yaml +++ b/.github/workflows/build-images.yaml @@ -109,8 +109,8 @@ jobs: - name: Set Operator version id: operator-version run: | - tag=${{GITHUB_REF_NAME}} - if [[ ${tag} =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-.+)?$ ]]; then + tag=${GITHUB_REF_NAME/\//-} + if [[ ${tag} =~ ^[0-9]+\.[0-9]+\.[0-9]+(-.+)?$ ]]; then echo "VERSION=${tag#v}" >> $GITHUB_ENV else echo "VERSION=${{ github.sha }}" >> $GITHUB_ENV