Skip to content

Commit b37a6e7

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix xcode-select
2 parents 038e534 + 9bd5878 commit b37a6e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/macos-update-clang/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ runs:
88
label=$((softwareupdate -l 2>/dev/null | grep 'Label:' | grep -o 'Command Line Tools for Xcode.*' | head -1) || echo '')
99
if [ -n "$label" ]; then
1010
softwareupdate -i "$label"
11-
xcode_path=$(ls -1 '/Applications' | grep 'Xcode_.*\.app' | head -1)
11+
xcode_path=$(ls -1 '/Applications' | grep 'Xcode_.*\.app' | sort -r | head -1)
1212
sudo xcode-select -s "/Applications/$xcode_path"
1313
else
1414
echo "Not found."

0 commit comments

Comments
 (0)