fix: overwrite pr number on fork

This commit is contained in:
Tom Hu 2025-09-03 23:30:28 +02:00
parent 3cb13a1234
commit 73ba528ce7
No known key found for this signature in database
GPG key ID: 79155678363963D2

View file

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