Skip to content

Commit fb583c7

Browse files
committed
Use grep instead of xpath to parse current Swift version
1 parent c0963c5 commit fb583c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ runs:
154154
155155
# yq or xmllint are best for this, but they aren't installed by
156156
# default on GH Linux runners, we we just use grep
157-
grep '<title>' swift-releases.xml | cut -f 2 -d '>' | cut -f 1 -d '<' | grep '^[0-9]' ${{ runner.temp }}/swift-releases.xml | sort -rn > ${SWIFT_VERSIONS_FILE}
157+
grep '<title>' ${{ runner.temp }}/swift-releases.xml | cut -f 2 -d '>' | cut -f 1 -d '<' | grep '^[0-9]' | sort -rn > ${SWIFT_VERSIONS_FILE}
158158
159159
# if we hardcode the latest builds, we would need to update them every time a new snapshot is released
160160

0 commit comments

Comments
 (0)