From 247bd78da31381173029905a8b526129b9ab31a0 Mon Sep 17 00:00:00 2001 From: Liu Shilong Date: Tue, 11 Oct 2022 09:56:48 +0800 Subject: [PATCH] [action] Fix PR pre-cherry-pick action wrong author issue. (#12339) --- .github/workflows/pr_cherrypick_prestep.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_cherrypick_prestep.yml b/.github/workflows/pr_cherrypick_prestep.yml index 9d2ddc6893..cdfe6b682b 100644 --- a/.github/workflows/pr_cherrypick_prestep.yml +++ b/.github/workflows/pr_cherrypick_prestep.yml @@ -33,7 +33,7 @@ jobs: pr_url=$(echo $GITHUB_CONTEXT | jq -r ".event.pull_request._links.html.href") repository=$(echo $GITHUB_CONTEXT | jq -r ".repository") labels=$(echo $GITHUB_CONTEXT | jq -r ".event.pull_request.labels[].name") - author=$(echo $GITHUB_CONTEXT | jq -r ".event.pull_request.base.user.login") + author=$(echo $GITHUB_CONTEXT | jq -r ".event.pull_request.user.login") branches=$(git branch -a --list 'origin/20????' | awk -F/ '{print$3}' | grep -E "202[0-9]{3}") if [[ $(echo $GITHUB_CONTEXT | jq -r ".event.action") == "labeled" ]];then labels=$(echo $GITHUB_CONTEXT | jq -r ".event.label.name")