@@ -64,13 +64,15 @@ jobs:
6464 env :
6565 GH_TOKEN : ${{ github.token }}
6666 run : |
67- PR=` gh pr view ${{ github.event.inputs.pr_number }} --json isDraft,author,labels,headRefName,baseRefName`
67+ PR=$( gh pr view ${{ github.event.inputs.pr_number }} --json isDraft,author,labels,headRefName,baseRefName)
6868
69- echo "draft=`echo ${PR} | jq -r '.isDraft'`" >> "$GITHUB_OUTPUT"
70- echo "user_login=`echo ${PR} | jq -r '.author.login'`" >> "$GITHUB_OUTPUT"
71- echo "labels=`echo ${PR} | jq -r '.labels | map(.name) | join(",")'`" >> "$GITHUB_OUTPUT"
72- echo "head_ref=`echo ${PR} | jq -r '.headRefName'`" >> "$GITHUB_OUTPUT"
73- echo "base_ref=`echo ${PR} | jq -r '.baseRefName'`" >> "$GITHUB_OUTPUT"
69+ {
70+ echo "draft=$(echo "${PR}" | jq -r '.isDraft')"
71+ echo "user_login=$(echo "${PR}" | jq -r '.author.login')"
72+ echo "labels=$(echo "${PR}" | jq -r '.labels | map(.name) | join(",")')"
73+ echo "head_ref=$(echo "${PR}" | jq -r '.headRefName')"
74+ echo "base_ref=$(echo "${PR}" | jq -r '.baseRefName')"
75+ } >> "$GITHUB_OUTPUT"
7476
7577 - name : " 📥 Checkout PR Code"
7678 uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
8688 run : |
8789 # Get the merge base to determine the changes made in the PR compared to when it was branched from the
8890 # default branch, instead of the diff to the default branch.
89- mergeBase=` git merge-base origin/${{ steps.pr-info.outputs.base_ref }} HEAD`
91+ mergeBase=$( git merge-base origin/${{ steps.pr-info.outputs.base_ref }} HEAD)
9092 echo "merge_base=${mergeBase}" >> "$GITHUB_OUTPUT"
9193
9294 outputs :
0 commit comments