From 45ca3c95c15c7a2f255a2a04ebf9feebdc61a9b8 Mon Sep 17 00:00:00 2001 From: The412Banner Date: Tue, 22 Sep 2026 21:19:41 -0400 Subject: [PATCH] CI: a pull request against main builds itself (Bannerlator's PR check, in this one workflow) Every push to the pull request rebuilds it and cancels the build it replaces (the concurrency group is already per ref, and a pull request's ref is its own); a draft waits until it is marked ready. The apk comes back as the run's artifact. --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dbcf6cd2e6..cb5fcec41a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,6 +18,17 @@ on: - '**/*.md' - 'LICENSE' - '.gitignore' + # A pull request against main builds by itself: the contributor's branch, as it would be once + # merged onto main, comes back as an apk on the run without anyone here pressing a button. + # Every push to the pull request rebuilds it and cancels the build it replaces; a draft waits + # until it is marked ready. Same as Bannerlator's PR check. + pull_request: + branches: [ main ] + types: [ opened, synchronize, reopened, ready_for_review ] + paths-ignore: + - '**/*.md' + - 'LICENSE' + - '.gitignore' workflow_dispatch: permissions: @@ -34,6 +45,7 @@ env: jobs: build: + if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }} runs-on: ubuntu-24.04 timeout-minutes: 45 steps: