diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6fff69a..8551fa6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,7 +60,6 @@ jobs: env: FILE: build.gradle VERSION_REGEX: "^version = '\\d+\\.\\d+\\.\\d+'$" - REGEX: "version = \'[0-9]\+\.[0-9]\+\.[0-9]\+\'" steps: - name: Checkout uses: actions/checkout@v4 @@ -76,7 +75,7 @@ jobs: echo "new_tag_version=$VERSION" # Regular expression to match the string to be replaced - sed -i "s/${{ env.REGEX }}/version = '$VERSION'/" ${{ env.FILE }} + sed -i "s/version = '.*'/version = '$VERSION'/" ${{ env.FILE }} - name: Print new file if: ${{needs.setup_release.outputs.new_tag_version != ''}}