Skip to content

Commit c164f16

Browse files
committed
Don't unpack secrets and assemble if it's external contributor
1 parent ef64301 commit c164f16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,17 @@ jobs:
3131
run: make test
3232

3333
- name: Set up Ruby
34+
if: ${{ env.ANDROID_SECRETS_KEY }}
3435
uses: ruby/setup-ruby@v1
3536
with:
3637
ruby-version: 2.6
3738

3839
- name: Set up Fastlane
40+
if: ${{ env.ANDROID_SECRETS_KEY }}
3941
run: gem install fastlane --no-document --quiet
4042

4143
- name: Unpack secrets
44+
if: ${{ env.ANDROID_SECRETS_KEY }}
4245
env:
4346
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY }}
4447
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV }}
@@ -47,6 +50,7 @@ jobs:
4750
tar -xf ./secrets.tar.gz
4851
4952
- name: Assemble unbranded
53+
if: ${{ env.ANDROID_SECRETS_KEY }}
5054
uses: maierj/fastlane-action@v1.4.0
5155
env:
5256
ANDROID_KEYSTORE_PATH: ${{ secrets.ANDROID_KEYSTORE_PATH }}

0 commit comments

Comments
 (0)