Skip to content

Commit 546209d

Browse files
committed
fix(ci): 👷 changed grep for watchos build, rewrote regex
1 parent 277a6ca commit 546209d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build-watchos.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121

2222
- name: Select watchOS Simulator
2323
run: |
24-
echo "Listing all available devices:"
25-
xcrun simctl list devices available
24+
echo "Listing all watchOS devices:"
25+
xcrun simctl list devices | grep -A 20 "watchOS"
2626
27-
echo -e "\nSearching for watchOS simulators:"
28-
WATCH_SIMULATOR_ID=$(xcrun simctl list devices available | \
29-
grep -i "watchOS" | \
30-
grep -i "Apple Watch" | \
27+
echo -e "\nSearching for watchOS simulator:"
28+
WATCH_SIMULATOR_ID=$(xcrun simctl list devices | \
29+
grep "Apple Watch" | \
30+
grep -v "Unavailable" | \
3131
head -1 | \
3232
grep -oE '[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}')
3333

0 commit comments

Comments
 (0)