Actions: Fix bad performance in getTargetPath
#30676
check-change-note.yml
on: pull_request_target
check-change-note
4s
getTargetPath
#30676