Skip to content

Commit

Permalink
Change perl regex
Browse files Browse the repository at this point in the history
  • Loading branch information
DareFox authored Aug 6, 2023
1 parent 23240c3 commit b29cd95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update_meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Replace version in mod.txt
run: |
echo "Replacing version in mod.txt"
perl -pe 's/(?<="version" : "|version": ").+?(?=")/NEW_VERSION/g' mod.txt > new_mod.txt
perl -pe 's/((?<="version" : ")|(?<="version" :")|(?<="version":")).+(?=")/"$GITHUB_REF_NAME"/g' mod.txt > new_mod.txt
mv new_mod.txt mod.txt
- name: Push changes to meta.json
Expand Down

0 comments on commit b29cd95

Please sign in to comment.