mirror of
https://github.com/expo/expo-github-action.git
synced 2026-11-15 17:32:45 -10:00
chore: skip steps if auth is unavailable
This is especially useful for external PR contributions
This commit is contained in:
1 parent
d4175ed947
commit
bb7c72336b
1 file changed
+4
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user