From 984a90635f63ba918bad13cf0d1fbfb4f95ca40d Mon Sep 17 00:00:00 2001 From: Ami Mahloof <130996527+ami-descope@users.noreply.github.com> Date: Wed, 17 Apr 2024 09:26:24 -0400 Subject: [PATCH] Update publish-gem.yaml --- .github/workflows/publish-gem.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-gem.yaml b/.github/workflows/publish-gem.yaml index 3c671a3..a610119 100644 --- a/.github/workflows/publish-gem.yaml +++ b/.github/workflows/publish-gem.yaml @@ -28,7 +28,7 @@ jobs: run: | NEW_VERSION=$(echo ${{ github.event.release.tag_name }} | sed 's/^v//') # strip the 'v' from the tag if present echo "New version: ${NEW_VERSION}" - sed -i -r "s/VERSION = \".+\"/^VERSION = \"${NEW_VERSION}\"/" ./lib/descope/version.rb + sed -i -r "s/(VERSION = \").+(\")/\\1${NEW_VERSION}\\2/" ./lib/descope/version.rb cat ./lib/descope/version.rb git status