fix: overwrite pr number on fork (#1871)

This commit is contained in:
Tom Hu
2025-09-04 16:28:19 +02:00
committed by GitHub
parent c4741c8197
commit 3e0ce21cac

View File

@@ -282,7 +282,7 @@ runs:
then
CC_SHA="$GITHUB_EVENT_PULL_REQUEST_HEAD_SHA"
fi
if [ -z "$CC_PR" ] && [ "${GITHUB_EVENT_NAME}" == "pull_request_target" ];
if [ -z "$CC_PR" ] && [ "$CC_FORK" == 'true' ];
then
CC_PR="$GITHUB_EVENT_NUMBER"
fi