Disable Diawi when running from fork (#292)

This commit is contained in:
Jorge Martin Espinosa 2023-04-04 16:50:50 +02:00 committed by GitHub
parent 610e4aa8b6
commit 7d3fd30d66

View file

@ -42,12 +42,14 @@ jobs:
app/build/outputs/apk/debug/*.apk
- uses: rnkdsh/action-upload-diawi@v1.3.2
id: diawi
if: ${{ github.event_name == 'pull_request' }}
with:
env:
token: ${{ secrets.DIAWI_TOKEN }}
if: ${{ github.event_name == 'pull_request' && env.token != '' }}
with:
token: ${{ env.token }}
file: app/build/outputs/apk/debug/app-arm64-v8a-debug.apk
- name: Add or update PR comment with QR Code to download APK.
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'pull_request' && steps.diawi.conclusion == 'success' }}
uses: NejcZdovc/comment-pr@v2
with:
message: |