From: Jeff Lucovsky Date: Sat, 7 Nov 2020 12:55:19 +0000 (-0500) Subject: github-ci: Improve body parsing X-Git-Tag: suricata-6.0.1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2c8c9f58e6608521afaf4484292d607e435f8c4;p=thirdparty%2Fsuricata.git github-ci: Improve body parsing This commit improves handling of the PR body parsing to eliminate unneeded characters. --- diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index ce9246119c..85fd027a53 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -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 }')