From ab6fb0e05e4d97d4a1643e789b1dc3a2af62a444 Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 18 Dec 2023 18:28:14 +0200 Subject: [PATCH] [core] Fix `cherry-pick` action (#11446) Signed-off-by: Lukas Co-authored-by: Bilal Shafi --- .github/workflows/cherry-pick-next-to-master.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cherry-pick-next-to-master.yml b/.github/workflows/cherry-pick-next-to-master.yml index da951ace5606..3378273e142f 100644 --- a/.github/workflows/cherry-pick-next-to-master.yml +++ b/.github/workflows/cherry-pick-next-to-master.yml @@ -1,5 +1,5 @@ on: - pull_request: + pull_request_target: branches: - next types: ['closed'] @@ -21,8 +21,8 @@ jobs: uses: carloscastrojumo/github-cherry-pick-action@v1.0.9 with: branch: master - token: ${{ secrets.GITHUB_TOKEN }} body: 'Cherry-pick of #{old_pull_request_id}' + cherry-pick-branch: ${{ format('cherry-pick-{0}', github.event.number) }} labels: | cherry-pick env: