From 71da36975a5ca84d6b77eb2dcaadb0d5711d164f Mon Sep 17 00:00:00 2001 From: Arc-E-Tect Date: Mon, 22 Jul 2024 00:54:19 +0200 Subject: [PATCH] fix: switch to a variable and use a very broad definition --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8551fa6..bfed98a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,8 +74,8 @@ jobs: VERSION=${{ needs.setup_release.outputs.new_tag_version }} echo "new_tag_version=$VERSION" - # Regular expression to match the string to be replaced - sed -i "s/version = '.*'/version = '$VERSION'/" ${{ env.FILE }} + REGEX="s/version = '.*'" + sed -i "s/$REGEX/version = '$VERSION'/" ${{ env.FILE }} - name: Print new file if: ${{needs.setup_release.outputs.new_tag_version != ''}}