debugging workflow
OmarHatem committed
Dec 11, 2025 at 03:22 UTC
045bc0aaae94027f7440fb5c8750f5558bcb03d0
1 file changed
+12
-12
.github/workflows/pr_test_build_android.yml
+12
-12
@@ -6,15 +6,15 @@ on:
6
pull_request_target:
7
8
jobs:
9
+
10
debug-context:
11
+ runs-on: [Linux, amd64, forlinux]
12
defaults:
13
run:
14
shell: bash
13
- runs-on: ubuntu-latest
15
steps:
16
- name: "1. Diagnostic Dump"
17
env:
17
- # This dumps the entire JSON payload so you can see exactly what GitHub sees
18
GITHUB_CONTEXT: ${{ toJson(github) }}
19
run: echo "$GITHUB_CONTEXT"
20
@@ -27,27 +27,27 @@ jobs:
27
echo "PR Number: ${{ github.event.number }}"
28
echo "Head SHA: ${{ github.event.pull_request.head.sha }}"
29
30
- # PATH A: Internal PRs (Triggered by standard 'pull_request')
30
+ # -----------------------------------------
31
+ # PATH A: Internal PRs
32
internal-build:
32
- if: |
33
- github.event_name == 'pull_request' &&
33
+ if: >
34
+ github.event_name == 'pull_request' &&
35
github.event.pull_request.head.repo.fork == false
36
uses: ./.github/workflows/reusable-build.yml
37
with:
38
ref: ${{ github.event.pull_request.head.sha }}
39
pr_number: ${{ github.head_ref || github.ref_name }}
39
- secrets: inherit # Passes all secrets automatically
40
+ secrets: inherit
41
41
- # PATH B: External Forks (Triggered by 'pull_request_target' for security)
42
+ # -----------------------------------------
43
+ # PATH B: External Fork PRs
44
external-build:
43
- if: |
44
- github.event_name == 'pull_request_target' &&
45
+ if: >
46
+ github.event_name == 'pull_request_target' &&
47
github.event.pull_request.head.repo.fork == true
46
-
48
environment: external_contributors
48
-
49
uses: ./.github/workflows/reusable-build.yml
50
with:
51
ref: ${{ github.event.pull_request.head.sha }}
52
pr_number: ${{ github.head_ref || github.ref_name }}
53
- secrets: inherit
\ No newline at end of file
53
+ secrets: inherit