Skip to content

Commit 1b2f490

Browse files
Merge pull request #5 from max-ostapenko/unique-lion
pr body via step env
2 parents 13af85d + 7654ee4 commit 1b2f490

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/test.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ jobs:
4242
WPT_SERVER: "webpagetest.httparchive.org"
4343
WPT_API_KEY: ${{ secrets.HA_API_KEY }}
4444
PR_NUMBER: ${{ github.event.pull_request.number }}
45+
PR_BODY: ${{ github.event.pull_request.body }}
4546
run: |
46-
PR_BODY="${{ github.event.pull_request.body }}"
47-
4847
# Read PR body into an array, removing line breaks and carriage returns
49-
IFS=$'\n' read -d '' -r -a lines <<< "${PR_BODY//$'\r\n'/ }"
48+
lines=()
49+
while IFS= read -r line; do
50+
lines+=("${line//[$'\r\n']}")
51+
done <<< "$PR_BODY"
5052
5153
# Find the index of the line after "**Test websites**:"
5254
start_index=-1

0 commit comments

Comments
 (0)