Skip to content

Commit

Permalink
Use format string %s when printing PR_BODY with printf
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartin16 committed Oct 25, 2023
1 parent eda1ba6 commit 23a390b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/install-briefcase/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ runs:
PR_BODY="${{ inputs.testing-pr-body }}"
if [[ -z "${PR_BODY}" && -n "${{ github.event.pull_request.number }}" ]]; then
PR_BODY=$(gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }} --jq '.body')
printf "::group::Retrieved PR Body\n${PR_BODY}\n::endgroup::\n"
printf "::group::Retrieved PR Body\n%s\n::endgroup::\n" "${PR_BODY}"
fi
BRIEFCASE_REPO=$(printf "%s" "${PR_BODY}" | perl -wlne '/BRIEFCASE[-_]*REPO:\s*\K\S+/i and print $&')
BRIEFCASE_REF=$(printf "%s" "${PR_BODY}" | perl -wlne '/BRIEFCASE[-_]*REF:\s*\K\S+/i and print $&')
Expand Down

0 comments on commit 23a390b

Please sign in to comment.