summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2024-07-31 12:15:27 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-08-01 13:38:33 +0800
commitfc253d7ef90840d348d30ccacbdb788060dd763f (patch)
treef73e5f2e4f9e0ef27cc7f0149c01b48f5760ae4a /.github
parent346bb6c08b31f463ab3633629220d483cb564855 (diff)
Removed refs/tags from ruby version
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11286
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/publish.yml5
1 files 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 \