Skip to content

Commit 751b867

Browse files
committed
wrap body in a heredoc
1 parent 58478ad commit 751b867

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build-and-stage.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ jobs:
3535

3636
- name: Detect template source from PR body
3737
run: |
38-
CheckoutTarget=$(grep "template_checkout_target=" `${{ github.event.pull_request.body }}` | awk '{print $2}')
38+
PullRequestBody=$(cat <<'EOF'
39+
${{ github.event.pull_request.body }}
40+
EOF
41+
)
42+
CheckoutTarget=$(grep "template_checkout_target=" $PullRequestBody | awk '{print $2}')
3943
if [[ $CheckoutTarget ]]; then
4044
echo "Found checkout target '$CheckoutTarget' in PR body, using include templates from source."
4145
echo "{TEMPLATE_CHECKOUT_TARGET}=$CheckoutTarget" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)