Skip to content

Commit

Permalink
markdown chars escape
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ostapenko committed Oct 24, 2023
1 parent 37882ad commit 780b066
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/wpt-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ jobs:
- name: Run WebPageTest for more websites
run: |
METRICS=$(git diff --name-only --diff-filter=ACMRT ${GITHUB_BASE_SHA} ${GITHUB_HEAD_SHA} | grep -E "^dist/.*\.js$" | xargs -I {} basename {} | cut -d. -f1 | sort | uniq)
PR_BODY="${{ github.event.pull_request.body }}"
PR_BODY="$(cat <<'EOF'
${{ github.event.pull_request.body }}
EOF
)"
# Read PR body into an array, removing line breaks
IFS=$'\n' read -r -a lines <<< "$PR_BODY"
declare -a lines
while IFS= read -r line; do
lines+=("${line//[$'\r\n']}")
done <<< "$PR_BODY"
# Find the start index of the section you're interested in
start_index=-1
Expand Down

0 comments on commit 780b066

Please sign in to comment.