File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -35,16 +35,16 @@ jobs:
3535
3636 - name : Detect template source from PR body
3737 run : |
38- PullRequestBody=$( cat <<' EOF'
38+ cat << EOF > /tmp/pull_request_body.txt
3939 ${{ github.event.pull_request.body }}
4040 EOF
41- )
42- CheckoutTarget=$(grep "template_checkout_target=" $PullRequestBody | awk '{print $2}')
43- if [[ $CheckoutTarget ]]; then
41+
42+ CheckoutTarget=$(grep "template_checkout_target=" /tmp/pull_request_body.txt | awk -F= '{print $2}')
43+ if [ "$CheckoutTarget" = "" ]; then
44+ echo "Did not find a checkout target for templates."
45+ else
4446 echo "Found checkout target '$CheckoutTarget' in PR body, using include templates from source."
4547 echo "{TEMPLATE_CHECKOUT_TARGET}=$CheckoutTarget" >> "$GITHUB_ENV"
46- else
47- echo "Did not find a checkout target for templates."
4848 fi
4949
5050 # - name: Login to Azure
You can’t perform that action at this time.
0 commit comments