Skip to content

Commit bb7c723

Browse files
authored
chore: skip steps if auth is unavailable
This is especially useful for external PR contributions
1 parent d4175ed commit bb7c723

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@ jobs:
4141
run: eas --version
4242

4343
- name: 🧪 EAS authenticated
44+
if: ${{ secrets.EXPO_TOKEN }}
4445
run: eas whoami
4546

4647
- name: 🧪 Expo installed
4748
run: expo --version
4849

4950
- name: 🧪 Expo authenticated
51+
if: ${{ secrets.EXPO_TOKEN }}
5052
run: expo whoami
5153

5254
preview-comment:
@@ -80,6 +82,7 @@ jobs:
8082
if (!message) throw new Error('Message output is empty')
8183
8284
- name: 🧪 Comment on PR (github-token)
85+
if: ${{ secrets.EXPO_TOKEN }}
8386
uses: ./preview-comment
8487
env:
8588
EXPO_TEST_GITHUB_PULL: 149
@@ -88,6 +91,7 @@ jobs:
8891
channel: test
8992

9093
- name: 🧪 Comment on PR (GITHUB_TOKEN)
94+
if: ${{ secrets.EXPO_TOKEN }}
9195
uses: ./preview-comment
9296
env:
9397
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -96,5 +100,3 @@ jobs:
96100
project: ./temp
97101
channel: test
98102
github-token: badtoken
99-
100-

0 commit comments

Comments
 (0)