Skip to content

Commit

Permalink
replace download_url in meta.json
Browse files Browse the repository at this point in the history
  • Loading branch information
DareFox authored Aug 7, 2023
1 parent 41b090d commit a2812ae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 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 @@ -68,7 +68,14 @@ jobs:
cond: ${{ github.event.inputs.should_action_replace_download_url == 'tag' }}
if_true: https://github.com/${{ github.repository }}/archive/refs/tags/${{ inputs.mod_new_version }}.zip"
if_false: https://github.com/${{ github.repository }}/archive/refs/heads/${{ github.event.inputs.branch }} .zip


- name: Replace download_url in meta.json
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
mv new_meta.json ${{ inputs.meta_json_path }}
- name: Setup github actions account
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
Expand Down

0 comments on commit a2812ae

Please sign in to comment.