Skip to content

Commit

Permalink
[bugfix] fix backport github value bypass failure (#2380)
Browse files Browse the repository at this point in the history
Signed-off-by: kpango <kpango@vdaas.org>
  • Loading branch information
kpango committed Feb 19, 2024
1 parent 5ec1846 commit c392c8d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,13 @@ jobs:
- name: Get PR title and body
id: pr_info
run: |
echo "PR_NUM=$(jq --raw-output .pull_request.number $GITHUB_EVENT_PATH)" >> $GITHUB_OUTPUT
echo "PR_TITLE=$(jq --raw-output .pull_request.title $GITHUB_EVENT_PATH)" >> $GITHUB_OUTPUT
echo "PR_BODY=$(jq --raw-output .pull_request.body $GITHUB_EVENT_PATH)" >> $GITHUB_OUTPUT
PR_TITLE=`jq -r .pull_request.title ${GITHUB_EVENT_PATH}`
PR_BODY=`jq -r .pull_request.body ${GITHUB_EVENT_PATH}`
PR_NUM=`jq -r .pull_request.number ${GITHUB_EVENT_PATH}`
echo "${PR_NUM} ${PR_TITLE}: ${PR_BODY}"
echo "PR_TITLE=${PR_TITLE}" >> $GITHUB_OUTPUT
echo "PR_BODY=${PR_BODY}" >> $GITHUB_OUTPUT
echo "PR_NUM=${PR_NUM}" >> $GITHUB_OUTPUT
- name: Create PR
if: ${{ github.event.pull_request.labels.*.name == '${TARGET_LABEL_NAME_PREFIX}*' }}
env:
Expand Down

0 comments on commit c392c8d

Please sign in to comment.