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 != ''}}