Skip to content

Commit

Permalink
fix: switch to a variable and 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 c3c9e50 commit 71da369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 != ''}}
Expand Down

0 comments on commit 71da369

Please sign in to comment.