Skip to content

Commit c22c8a3

Browse files
authored
Merge branch 'main' into test
2 parents 1a61305 + 56748eb commit c22c8a3

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/pr_test_build_android.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,30 @@ name: Cake Wallet Android
33
on:
44
pull_request:
55
pull_request_target:
6+
types: [opened, synchronize, reopened, labeled]
67

78
defaults:
89
run:
910
shell: bash
1011

1112
jobs:
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 }}

0 commit comments

Comments
 (0)