diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8832499c43..e529692dd7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,9 @@ jobs: cancel-in-progress: true steps: - uses: actions/checkout@v3 + with: + # https://github.com/actions/checkout/issues/881 + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} - name: Configure gradle uses: gradle/gradle-build-action@v2 with: @@ -46,6 +49,9 @@ jobs: cancel-in-progress: ${{ github.ref != 'refs/head/main' }} steps: - uses: actions/checkout@v3 + with: + # https://github.com/actions/checkout/issues/881 + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} - name: Configure gradle uses: gradle/gradle-build-action@v2 with: diff --git a/changelog.d/8044.misc b/changelog.d/8044.misc new file mode 100644 index 0000000000..dd6836f868 --- /dev/null +++ b/changelog.d/8044.misc @@ -0,0 +1 @@ +Build unmerged APKs on pull request \ No newline at end of file