Skip to content

Commit

Permalink
chore: skip steps if auth is unavailable
Browse files Browse the repository at this point in the history
This is especially useful for external PR contributions
  • Loading branch information
byCedric authored Mar 3, 2022
1 parent d4175ed commit bb7c723
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -96,5 +100,3 @@ jobs:
project: ./temp
channel: test
github-token: badtoken


0 comments on commit bb7c723

Please sign in to comment.