dev
yml 34 lines 950 Bytes
Raw
1 name: Cake Wallet Android
2
3 on:
4 pull_request:
5
6 permissions:
7 contents: read
8 packages: write
9
10 jobs:
11 # -----------------------------------------
12 # PATH A: Internal PRs
13 internal-build:
14 if: >
15 github.event_name == 'pull_request' &&
16 github.event.pull_request.head.repo.fork == false
17 uses: ./.github/workflows/reusable-build.yml
18 with:
19 ref: ${{ github.event.pull_request.head.sha }}
20 pr_number: ${{ github.head_ref || github.ref_name }}
21 secrets: inherit
22
23 # # -----------------------------------------
24 # # PATH B: External Fork PRs
25 # external-build:
26 # if: >
27 # github.event_name == 'pull_request_target' &&
28 # github.event.pull_request.head.repo.fork == true
29 # environment: external_contributors
30 # uses: ./.github/workflows/reusable-build.yml
31 # with:
32 # ref: ${{ github.event.pull_request.head.sha }}
33 # pr_number: ${{ github.head_ref || github.ref_name }}
34 # secrets: inherit