Build unmerged branch on pull request

This commit is contained in:
Benoit Marty
2023-03-01 09:52:11 +01:00
committed by Benoit Marty
parent 95ba130bc5
commit 01d2dde7be

View File

@@ -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