Prevent cover images showing as a series (#514)

* Parsing out cover images

- Fixing workflow
- Adding test case

* Fixing workflow
This commit is contained in:
Robbie Davis 2021-08-21 15:23:53 -04:00 committed by GitHub
parent 0790a0211d
commit 2341d9af9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,11 +135,11 @@ jobs:
- name: Parse PR body
id: parse-body
run: |
body='${{ steps.findPr.outputs.body }}'
body="${{ steps.findPr.outputs.body }}"
body=${body//\'/}
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
body=${body//'%'/'%25'}
body=${body//$'\n'/'%0A'}
body=${body//$'\r'/'%0D'}
echo $body
echo "::set-output name=BODY::$body"
@ -237,11 +237,11 @@ jobs:
- name: Parse PR body
id: parse-body
run: |
body='${{ steps.findPr.outputs.body }}'
body="${{ steps.findPr.outputs.body }}"
body=${body//\'/}
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
body=${body//'%'/'%25'}
body=${body//$'\n'/'%0A'}
body=${body//$'\r'/'%0D'}
echo $body
echo "::set-output name=BODY::$body"