mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-25 14:40:41 +01:00
Skip QA build if keystore not available
Copied solution from the Nextcloud Files for Android app from commit
6863a8 [1].
From Álvaro's commit message:
> There is no way to skip the whole workflow depending on whether it is
> a PR from a fork or not. The only workaround is to check whether secrets are present or not.
>
> So, I've added a step to check if KS_PASS is empty, and set an output depending on that.
> If it is empty, we just skip the rest of the steps.
[1] 6863a8a637
Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
parent
b87cc5927f
commit
8723354650
6
.github/workflows/qa.yml
vendored
6
.github/workflows/qa.yml
vendored
@ -8,12 +8,18 @@ jobs:
|
|||||||
qa:
|
qa:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check if secrets are available
|
||||||
|
run: echo "::set-output name=ok::${{ secrets.KS_PASS != '' }}"
|
||||||
|
id: check-secrets
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
|
||||||
- name: set up JDK 1.8
|
- name: set up JDK 1.8
|
||||||
|
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
- name: Build QA
|
- name: Build QA
|
||||||
|
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
|
||||||
env:
|
env:
|
||||||
KS_PASS: ${{ secrets.KS_PASS }}
|
KS_PASS: ${{ secrets.KS_PASS }}
|
||||||
KEY_PASS: ${{ secrets.KEY_PASS }}
|
KEY_PASS: ${{ secrets.KEY_PASS }}
|
||||||
|
Loading…
Reference in New Issue
Block a user