From b80b223d0cfe493e1d3d919af4bfc6be441c05a7 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 17 May 2024 21:08:45 +0200 Subject: [PATCH] Added branch to GitHub workflow --- .github/workflows/android.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 4dc731a2f0..9ff3ac030a 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -7,7 +7,10 @@ on: password: description: 'Password' required: true - + branch: + description: 'Branch' + required: true + default: 'master' jobs: build: @@ -17,6 +20,8 @@ jobs: #https://github.com/actions/setup-java steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.inputs.branch }} - name: set up JDK 17 uses: actions/setup-java@v4 with: @@ -49,9 +54,9 @@ jobs: run: ./gradlew assembleGithubRelease assembleLargeRelease assemblePlayRelease uploadBugsnagGithub-releaseMapping uploadBugsnagLarge-releaseMapping uploadBugsnagPlay-releaseMapping - name: Upload to BitBucket run: | - ./gradlew upload -Ptarget=play-preview - ./gradlew upload -Ptarget=github-snapshot - ./gradlew upload -Ptarget=large-snapshot + ./gradlew upload -Ptarget=play-preview-${{ github.event.inputs.branch }} + ./gradlew upload -Ptarget=github-snapshot-${{ github.event.inputs.branch }} + ./gradlew upload -Ptarget=large-snapshot-${{ github.event.inputs.branch }} #https://github.com/actions/upload-artifact - uses: actions/upload-artifact@v4 with: