Skip to content

Commit

Permalink
CI: attempt to print body contents without evaluating expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Aug 5, 2023
1 parent 3657228 commit 97bcb52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/zip-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Generate Preview Content
id: zip_preview
run: |
zip_url="$(echo "${{ github.event.issue.body }}" | sed -n '/### Upload file or Add PR Link/,/###/p' | grep -v "###" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*.zip(\?raw=true|)" | head -n 1)"
zip_url="$(echo '${{ github.event.issue.body }}' | sed -n '/### Upload file or Add PR Link/,/###/p' | grep -v "###" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*.zip(\?raw=true|)" | head -n 1)"
if [ -z "$zip_url" ]; then
exit 0
else
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Generate Preview Content
id: zip_preview
run: |
zip_url="$(echo "${{ github.event.comment.body }}" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*.zip(\?raw=true|)" | head -n 1)"
zip_url="$(echo '${{ github.event.comment.body }}' | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*.zip(\?raw=true|)" | head -n 1)"
if [ -z "$zip_url" ]; then
exit 0
else
Expand Down

0 comments on commit 97bcb52

Please sign in to comment.