Skip to content

Commit

Permalink
Merge pull request #5 from max-ostapenko/unique-lion
Browse files Browse the repository at this point in the history
pr body via step env
  • Loading branch information
max-ostapenko authored Jun 29, 2024
2 parents 13af85d + 7654ee4 commit 1b2f490
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ jobs:
WPT_SERVER: "webpagetest.httparchive.org"
WPT_API_KEY: ${{ secrets.HA_API_KEY }}
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_BODY: ${{ github.event.pull_request.body }}
run: |
PR_BODY="${{ github.event.pull_request.body }}"
# Read PR body into an array, removing line breaks and carriage returns
IFS=$'\n' read -d '' -r -a lines <<< "${PR_BODY//$'\r\n'/ }"
lines=()
while IFS= read -r line; do
lines+=("${line//[$'\r\n']}")
done <<< "$PR_BODY"
# Find the index of the line after "**Test websites**:"
start_index=-1
Expand Down

0 comments on commit 1b2f490

Please sign in to comment.