name: Cake Wallet Android on: push: pull_request: pull_request_target: jobs: debug-context: runs-on: [Linux, amd64, forlinux] defaults: run: shell: bash steps: - name: "1. Diagnostic Dump" env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - name: "2. Check Condition Logic" run: | echo "Event Name: ${{ github.event_name }}" echo "Repo Full Name: ${{ github.repository }}" echo "Head Repo: ${{ github.event.pull_request.head.repo.full_name }}" echo "Is Fork: ${{ github.event.pull_request.head.repo.fork }}" echo "PR Number: ${{ github.event.number }}" echo "Head SHA: ${{ github.event.pull_request.head.sha }}" # ----------------------------------------- # PATH A: Internal PRs internal-build: if: > github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false uses: ./.github/workflows/reusable-build.yml with: ref: ${{ github.event.pull_request.head.sha }} pr_number: ${{ github.head_ref || github.ref_name }} secrets: inherit # ----------------------------------------- # PATH B: External Fork PRs external-build: if: > github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.fork == true environment: external_contributors uses: ./.github/workflows/reusable-build.yml with: ref: ${{ github.event.pull_request.head.sha }} pr_number: ${{ github.head_ref || github.ref_name }} secrets: inherit