Skip to content

Commit

Permalink
change perl delemiter to #
Browse files Browse the repository at this point in the history
Because perl uses forward slash as delimiter, pasting url break expression. This should fix it
  • Loading branch information
DareFox authored Aug 7, 2023
1 parent 1276550 commit 965794f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pd2_update_version_in_meta_and_mod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ jobs:
if: ${{ inputs.should_action_replace_download_url != 'nochange' }}
run: |
echo "Replacing download_url in meta.json"
perl -pe 's/(?<="download_url")\s*:\s*".*"/: "${{ steps.new_download_url.outputs.value }}"/g' ${{ inputs.meta_json_path }} > new_meta.json
echo "New url is ${{ steps.new_download_url.outputs.value }}"
perl -pe 's#(?<="download_url")\s*:\s*".*"#: "${{ steps.new_download_url.outputs.value }}"#g' ${{ inputs.meta_json_path }} > new_meta.json
mv new_meta.json ${{ inputs.meta_json_path }}
- name: Setup github actions account
Expand Down

0 comments on commit 965794f

Please sign in to comment.