Skip to content

Commit 2f9b9c4

Browse files
committed
fix(ci): 👷 changed grep for watchos build, considering only uuid
1 parent 6c1ca16 commit 2f9b9c4

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/build-watchos.yml

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

2222
- name: Select watchOS Simulator
2323
run: |
24-
WATCH_SIMULATOR_ID=$(xcrun simctl list devices available | grep -m1 "Apple Watch" | awk -F '[()]' '{print $2}')
25-
echo "WATCH_SIMULATOR_ID=$WATCH_SIMULATOR_ID" >> $GITHUB_ENV
26-
echo "Using watchOS simulator: $WATCH_SIMULATOR_ID"
24+
WATCH_SIMULATOR_ID=$(xcrun simctl list devices available | \
25+
grep "Apple Watch" | \
26+
grep "watchOS Simulator" | \
27+
grep -m1 -oE '[A-F0-9-]{36}')
28+
29+
echo "WATCH_SIMULATOR_ID=$WATCH_SIMULATOR_ID" >> $GITHUB_ENV
30+
echo "Using watchOS simulator: $WATCH_SIMULATOR_ID"
2731
- name: Build watchOS framework
2832
run: |
2933
set -o pipefail && \

0 commit comments

Comments
 (0)