From fc253d7ef90840d348d30ccacbdb788060dd763f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 31 Jul 2024 12:15:27 +0900 Subject: Removed refs/tags from ruby version --- .github/workflows/publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 64d8104c47..f417d11248 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,8 +15,9 @@ jobs: - name: Convert tag name to dot from underscore run: | - # vX_Y_Z to X.Y.Z - echo "RUBY_VERSION=$(echo ${{ github.ref }} | sed 's/v\([0-9]*\)_\([0-9]*\)_\([0-9]*\)/\1.\2.\3/')" >> $GITHUB_ENV + # Convert refs/tags/vX_Y_Z to X.Y.Z + echo "RUBY_VERSION=$(echo ${{ github.ref }} | sed -e 's/refs\/tags\/v//;s/_/./g')" >> $GITHUB_ENV + - name: Build and push Docker images run: | curl -L -X POST \ -- cgit v1.2.3