chore: skip steps if auth is unavailable

This is especially useful for external PR contributions
This commit is contained in:
Cedric van Putten authored and GitHub committed 2022-03-03 19:26:50 +01:00
1 parent d4175ed947
commit bb7c72336b
1 file changed
+4 -2
+4 -2
View File
@@ -41,12 +41,14 @@ jobs:
run: eas --version
- name: 🧪 EAS authenticated
if: ${{ secrets.EXPO_TOKEN }}
run: eas whoami
- name: 🧪 Expo installed
run: expo --version
- name: 🧪 Expo authenticated
if: ${{ secrets.EXPO_TOKEN }}
run: expo whoami
preview-comment:
@@ -80,6 +82,7 @@ jobs:
if (!message) throw new Error('Message output is empty')
- name: 🧪 Comment on PR (github-token)
if: ${{ secrets.EXPO_TOKEN }}
uses: ./preview-comment
env:
EXPO_TEST_GITHUB_PULL: 149
@@ -88,6 +91,7 @@ jobs:
channel: test
- name: 🧪 Comment on PR (GITHUB_TOKEN)
if: ${{ secrets.EXPO_TOKEN }}
uses: ./preview-comment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -96,5 +100,3 @@ jobs:
project: ./temp
channel: test
github-token: badtoken