From c54f0c1370dd6d4c8dc1d2c83a5741ca44c8f0c1 Mon Sep 17 00:00:00 2001 From: Gaurav Talreja Date: Wed, 6 Dec 2023 14:09:09 +0530 Subject: [PATCH] Fix copy PRT comment action in autocherrypick workflow Signed-off-by: Gaurav Talreja --- .github/workflows/auto_cherry_pick.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto_cherry_pick.yml b/.github/workflows/auto_cherry_pick.yml index 4cef50417b0..a64c015aeec 100644 --- a/.github/workflows/auto_cherry_pick.yml +++ b/.github/workflows/auto_cherry_pick.yml @@ -78,13 +78,10 @@ jobs: id: add-parent-prt-comment if: ${{ always() && steps.cherrypick.outcome == 'success' }} run: | - ISSUE_NUMBER=${{ steps.cherrypick.outputs.number }} - COMMENT_BODY=${{ needs.find-the-parent-prt-comment.outputs.prt_comment }} - curl -X POST -H "Authorization: token ${{ secrets.CHERRYPICK_PAT }}" \ -H "Accept: application/vnd.github.v3+json" \ - "https://api.github.com/repos/${{ github.repository }}/issues/${ISSUE_NUMBER}/comments" \ - -d "{\"body\":\"$COMMENT_BODY\"}" + "https://api.github.com/repos/${{ github.repository }}/issues/${{ steps.cherrypick.outputs.number }}/comments" \ + -d "{\"body\":\"${{ needs.find-the-parent-prt-comment.outputs.prt_comment }}\"}" - name: is autoMerging enabled for Auto CherryPicked PRs ? if: ${{ always() && steps.cherrypick.outcome == 'success' && contains(github.event.pull_request.labels.*.name, 'AutoMerge_Cherry_Picked') }}