From bc8d58a0cea504aa12d23ca736fd6a32ea741b1c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 5 Oct 2026 14:13:07 +0000 Subject: [PATCH 1/2] Initial plan From 300263923fd9056818a41a73a511b292d96a4da4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 5 Oct 2026 14:14:32 +0000 Subject: [PATCH 2/2] Fix rebuild command workflow dispatch Co-authored-by: JoshAtticus <72828296+JoshAtticus@users.noreply.github.com> --- .github/workflows/pr-build.yml | 10 ++++++++-- .github/workflows/pr-commands.yml | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index ecea9e56..4f73869b 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -6,6 +6,12 @@ on: paths-ignore: - '**.md' - 'fastlane/**' + workflow_dispatch: + inputs: + pr_number: + description: "Pull request number" + required: true + type: string jobs: build: @@ -35,7 +41,7 @@ jobs: if: success() uses: actions/upload-artifact@v4 with: - name: compressor-debug-pr-${{ github.event.pull_request.number }} + name: compressor-debug-pr-${{ github.event.inputs.pr_number || github.event.pull_request.number }} path: app/build/outputs/apk/debug/app-debug.apk retention-days: 5 @@ -43,7 +49,7 @@ jobs: if: always() run: | mkdir -p pr_data - echo "${{ github.event.pull_request.number }}" > pr_data/PR_NUMBER + echo "${{ github.event.inputs.pr_number || github.event.pull_request.number }}" > pr_data/PR_NUMBER echo "${{ job.status }}" > pr_data/STATUS if [ -f build.log ]; then tail -n 150 build.log > pr_data/trimmed_log.txt diff --git a/.github/workflows/pr-commands.yml b/.github/workflows/pr-commands.yml index 0bd27f48..620f7961 100644 --- a/.github/workflows/pr-commands.yml +++ b/.github/workflows/pr-commands.yml @@ -55,11 +55,11 @@ jobs: console.log(`Triggering rebuild for branch: ${pr.head.ref}`); - // 4. Trigger the main android.yml workflow + // 4. Trigger the PR build workflow await github.rest.actions.createWorkflowDispatch({ owner, repo: context.repo.repo, - workflow_id: 'android.yml', + workflow_id: 'pr-build.yml', ref: pr.head.ref, // IMPORTANT: Run on the PR's branch inputs: { pr_number: context.issue.number.toString()