File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -3,32 +3,30 @@ name: Cake Wallet Android
33on :
44 pull_request :
55 pull_request_target :
6+ types : [opened, synchronize, reopened, labeled]
67
78defaults :
89 run :
910 shell : bash
1011
1112jobs :
12- # PATH A: Internal PRs (Runs immediately )
13+ # PATH A: Internal PRs (Triggered by standard 'pull_request' )
1314 internal-build :
1415 if : |
1516 github.event_name == 'pull_request' &&
16- github.event.pull_request.head.repo.full_name == github.repository
17+ github.event.pull_request.head.repo.fork == false
1718 uses : ./.github/workflows/reusable-build.yml
1819 with :
1920 ref : ${{ github.event.pull_request.head.sha }}
2021 pr_number : ${{ github.head_ref || github.ref_name }}
2122 secrets : inherit # Passes all secrets automatically
2223
23- # PATH B: External Forks (Waits for Approval )
24+ # PATH B: External Forks (Triggered by 'pull_request_target' for security )
2425 external-build :
2526 if : |
2627 github.event_name == 'pull_request_target' &&
27- github.event.pull_request.head.repo.full_name != github.repository
28-
29- # This applies the specific environment rule ONLY to forks
28+ github.event.pull_request.head.repo.fork == true
3029 environment : external_contributors
31-
3230 uses : ./.github/workflows/reusable-build.yml
3331 with :
3432 ref : ${{ github.event.pull_request.head.sha }}
You can’t perform that action at this time.
0 commit comments