Try to run Diawi only for PRs (#124)
This commit is contained in:
parent
c762ed94c9
commit
d8a391ec9b
1 changed files with 3 additions and 0 deletions
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
|
@ -1,6 +1,7 @@
|
||||||
name: APK Build
|
name: APK Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
pull_request: { }
|
pull_request: { }
|
||||||
push:
|
push:
|
||||||
branches: [ main, develop ]
|
branches: [ main, develop ]
|
||||||
|
|
@ -37,10 +38,12 @@ jobs:
|
||||||
app/build/outputs/apk/debug/*.apk
|
app/build/outputs/apk/debug/*.apk
|
||||||
- uses: rnkdsh/action-upload-diawi@v1.3.1
|
- uses: rnkdsh/action-upload-diawi@v1.3.1
|
||||||
id: diawi
|
id: diawi
|
||||||
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.DIAWI_TOKEN }}
|
token: ${{ secrets.DIAWI_TOKEN }}
|
||||||
file: app/build/outputs/apk/debug/app-arm64-v8a-debug.apk
|
file: app/build/outputs/apk/debug/app-arm64-v8a-debug.apk
|
||||||
- name: Add or update PR comment with QR Code to download APK.
|
- name: Add or update PR comment with QR Code to download APK.
|
||||||
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
uses: NejcZdovc/comment-pr@v1
|
uses: NejcZdovc/comment-pr@v1
|
||||||
with:
|
with:
|
||||||
message: |
|
message: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue