We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58478ad commit 751b867Copy full SHA for 751b867
.github/workflows/build-and-stage.yml
@@ -35,7 +35,11 @@ jobs:
35
36
- name: Detect template source from PR body
37
run: |
38
- CheckoutTarget=$(grep "template_checkout_target=" `${{ github.event.pull_request.body }}` | awk '{print $2}')
+ PullRequestBody=$(cat <<'EOF'
39
+ ${{ github.event.pull_request.body }}
40
+ EOF
41
+ )
42
+ CheckoutTarget=$(grep "template_checkout_target=" $PullRequestBody | awk '{print $2}')
43
if [[ $CheckoutTarget ]]; then
44
echo "Found checkout target '$CheckoutTarget' in PR body, using include templates from source."
45
echo "{TEMPLATE_CHECKOUT_TARGET}=$CheckoutTarget" >> "$GITHUB_ENV"
0 commit comments