You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Run expo-doctor and capture output and exit code
4
+
output=$(npx expo-doctor@latest 2>&1)
5
+
exit_code=$?
6
+
7
+
# Output file location
8
+
output_file=".expo/expo-doctor.md"
9
+
{
10
+
# Add summary based on exit code
11
+
if [ $exit_code-eq 0 ];then
12
+
echo"✅ **Good news!** We ran Expo Doctor for this PR and everything looks good, Great job!">"$output_file"
13
+
else
14
+
echo"❌ **Action Required:** We ran Expo Doctor for this PR and found some issues that need to be addressed. Please review the complete report below.">"$output_file"
Copy file name to clipboardExpand all lines: .github/workflows/expo-doctor.yml
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,8 @@ jobs:
27
27
doctor:
28
28
name: Expo Doctor (expo)
29
29
runs-on: ubuntu-latest
30
+
permissions:
31
+
pull-requests: write
30
32
31
33
steps:
32
34
- name: 📦 Checkout project repo
@@ -38,7 +40,17 @@ jobs:
38
40
uses: ./.github/actions/setup-node-pnpm-install
39
41
40
42
- name: Run prebuild
41
-
run: pnpm run prebuild## we only need to run this to generate the badged icon in `.expo` folder
43
+
run: pnpm run prebuild
42
44
43
45
- name: 🚑 Run Doctor Checks
44
-
run: rm -rf ios android && pnpm run doctor ## apprently the new update of expo will break if you already have ios and android folders in your project as they will show up a eas warning
0 commit comments