Skip to content

Commit

Permalink
github-ci: Improve body parsing
Browse files Browse the repository at this point in the history
This commit improves handling of the PR body parsing to eliminate
unneeded characters.
  • Loading branch information
jlucovsky committed Nov 8, 2020
1 parent 68418a2 commit d2c8c9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ jobs:
PR_HREF: ${{ github.event.pull_request._links.self.href }}
run: |
if test "${PR_HREF}"; then
body=$(curl -s "${PR_HREF}" | jq -r .body)
body=$(curl -s "${PR_HREF}" | jq -r .body | tr -d '\r')
libhtp_repo=$(echo "${body}" | awk '/^libhtp-repo/ { print $2 }')
libhtp_branch=$(echo "${body}" | awk '/^libhtp-branch/ { print $2 }')
libhtp_pr=$(echo "${body}" | awk '/^libhtp-pr/ { print $2 }')
Expand Down

0 comments on commit d2c8c9f

Please sign in to comment.