[action] Fix PR pre-cherry-pick action wrong author issue. (#12339)
This commit is contained in:
parent
fc99265fd2
commit
247bd78da3
2
.github/workflows/pr_cherrypick_prestep.yml
vendored
2
.github/workflows/pr_cherrypick_prestep.yml
vendored
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user