11name : Cake Wallet Android
22
3- on : [push]
3+ on :
4+ push :
5+ pull_request :
6+ pull_request_target :
47
5- defaults :
6- run :
7- shell : bash
88jobs :
9+
910 debug-context :
1011 runs-on : [Linux, amd64, forlinux]
12+ defaults :
13+ run :
14+ shell : bash
1115 steps :
1216 - name : " 1. Diagnostic Dump"
1317 env :
14- # This dumps the entire JSON payload so you can see exactly what GitHub sees
1518 GITHUB_CONTEXT : ${{ toJson(github) }}
1619 run : echo "$GITHUB_CONTEXT"
1720
@@ -23,26 +26,17 @@ jobs:
2326 echo "Is Fork: ${{ github.event.pull_request.head.repo.fork }}"
2427 echo "PR Number: ${{ github.event.number }}"
2528 echo "Head SHA: ${{ github.event.pull_request.head.sha }}"
26- # --------------------------------
27- # PATH A: Internal PRs (Triggered by standard 'pull_request')
29+
30+ # -----------------------------------------
31+ # PATH A: Internal PRs
2832 internal-build :
29- if : |
30- github.event_name == 'pull_request' &&
33+ if : >
34+ github.event_name == 'pull_request' &&
3135 github.event.pull_request.head.repo.fork == false
3236 uses : ./.github/workflows/reusable-build.yml
3337 with :
3438 ref : ${{ github.event.pull_request.head.sha }}
3539 pr_number : ${{ github.head_ref || github.ref_name }}
36- secrets : inherit # Passes all secrets automatically
40+ secrets : inherit
41+
3742
38- # PATH B: External Forks (Triggered by 'pull_request_target' for security)
39- external-build :
40- if : |
41- github.event_name == 'pull_request_target' &&
42- github.event.pull_request.head.repo.fork == true
43- environment : external_contributors
44- uses : ./.github/workflows/reusable-build.yml
45- with :
46- ref : ${{ github.event.pull_request.head.sha }}
47- pr_number : ${{ github.head_ref || github.ref_name }}
48- secrets : inherit
0 commit comments