From 01d2dde7be1ffd6600a152afd770253ecd76ff80 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 1 Mar 2023 09:52:11 +0100 Subject: [PATCH] Build unmerged branch on pull request --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0a9c1de893..a776d430b6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,10 @@ jobs: cancel-in-progress: true steps: - uses: actions/checkout@v3 + with: + # Ensure we are building the branch and not the branch after being merged on develop + # https://github.com/actions/checkout/issues/881 + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} - name: Assemble debug APK run: ./gradlew assembleDebug $CI_GRADLE_ARG_PROPERTIES - name: Upload debug APKs