Skip to content

Commit 6c1ca16

Browse files
committed
fix(ci): 👷 changed grep for watchos build
1 parent c9d9b14 commit 6c1ca16

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/build-watchos.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ jobs:
2121

2222
- name: Select watchOS Simulator
2323
run: |
24-
WATCH_SIMULATOR_ID=$(xcrun simctl list devices available | \
25-
grep "Apple Watch" | \
26-
grep "watchOS" | \
27-
head -n 1 | \
28-
awk -F '[()]' '{print $2}')
24+
WATCH_SIMULATOR_ID=$(xcrun simctl list devices available | grep -m1 "Apple Watch" | awk -F '[()]' '{print $2}')
2925
echo "WATCH_SIMULATOR_ID=$WATCH_SIMULATOR_ID" >> $GITHUB_ENV
3026
echo "Using watchOS simulator: $WATCH_SIMULATOR_ID"
3127
- name: Build watchOS framework

0 commit comments

Comments
 (0)