Skip to content

Commit 3e0ce21

Browse files
fix: overwrite pr number on fork (#1871)
1 parent c4741c8 commit 3e0ce21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ runs:
282282
then
283283
CC_SHA="$GITHUB_EVENT_PULL_REQUEST_HEAD_SHA"
284284
fi
285-
if [ -z "$CC_PR" ] && [ "${GITHUB_EVENT_NAME}" == "pull_request_target" ];
285+
if [ -z "$CC_PR" ] && [ "$CC_FORK" == 'true' ];
286286
then
287287
CC_PR="$GITHUB_EVENT_NUMBER"
288288
fi

0 commit comments

Comments
 (0)