File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 11name : size
22on :
33 # this action will error unless run in a pr context
4+ pull_request_target :
5+ branches :
6+ - main
47 pull_request :
58 branches :
69 - main
1821 contents : read
1922 steps :
2023 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
24+ if : github.event_name == 'pull_request'
2125 with :
2226 ref : ${{ github.event.pull_request.head.sha }}
27+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
28+ if : github.event_name == 'pull_request_target'
29+ with :
30+ ref : ${{ github.event.pull_request.head.ref }}
31+ repository : ${{ github.event.pull_request.head.repo.full_name }}
2332 - run : npm i -g --force corepack && corepack enable
2433 - uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
2534 with :
You can’t perform that action at this time.
0 commit comments