From 10f3743b93a837d2c3639c4852558c64fb856fe9 Mon Sep 17 00:00:00 2001 From: Arc-E-Tect Date: Mon, 22 Jul 2024 00:45:12 +0200 Subject: [PATCH] fix: use the old style regex --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9de5635..6fff69a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,6 +60,7 @@ 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 @@ -75,7 +76,7 @@ jobs: echo "new_tag_version=$VERSION" # Regular expression to match the string to be replaced - sed -i "s/${{ env.VERSION_REGEX }}/version = '$VERSION'/" ${{ env.FILE }} + sed -i "s/${{ env.REGEX }}/version = '$VERSION'/" ${{ env.FILE }} - name: Print new file if: ${{needs.setup_release.outputs.new_tag_version != ''}}