Skip to content

Commit 82dbde1

Browse files
authored
Fix setup-swift composite action for versions 5.8, 5.8.1 (#1735)
1 parent c6dff34 commit 82dbde1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/actions/setup-swift/action.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,15 @@ runs:
2424
VERSION="null"
2525
else
2626
VERSION="$("$SWIFT_EXTRACTOR_DIR/tools/$PLATFORM/extractor" --version | awk '/version/ { print $3 }')"
27-
# Specify 5.7.0, otherwise setup Action will default to latest minor version.
27+
# Specify 5.x.0, otherwise setup Action will default to latest minor version.
2828
if [ $VERSION = "5.7" ]; then
2929
VERSION="5.7.0"
30-
fi
30+
elif [ $VERSION = "5.8" ]; then
31+
VERSION="5.8.0"
32+
# setup-swift does not yet support v5.8.1 Remove this when it does.
33+
elif [ $VERSION = "5.8.1" ]; then
34+
VERSION="5.8.0"
35+
fi
3136
fi
3237
echo "version=$VERSION" | tee -a $GITHUB_OUTPUT
3338

0 commit comments

Comments
 (0)