Skip to content

Commit

Permalink
fix: use a very broad definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Arc-E-Tect committed Jul 21, 2024
1 parent 10f3743 commit 183639c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 != ''}}
Expand Down

0 comments on commit 183639c

Please sign in to comment.