Skip to content

Commit 33c9d04

Browse files
committed
Use xmllint instead of yq to parse current Swift version
1 parent 6053152 commit 33c9d04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ runs:
147147
# fetch the Atom feed for the latest releases
148148
curl -fsSL --retry 8 --retry-connrefused https://github.com/skiptools/swift-android-toolchain/releases.atom --output ${{ runner.temp }}/swift-releases.xml
149149
SWIFT_VERSIONS_FILE=${{ runner.temp }}/swift-versions.txt
150-
yq -oy '.feed.entry[].title' ${{ runner.temp }}/swift-releases.xml | sort -rn > ${SWIFT_VERSIONS_FILE}
150+
#yq -oy '.feed.entry[].title' ${{ runner.temp }}/swift-releases.xml | sort -rn > ${SWIFT_VERSIONS_FILE}
151+
xmllint --xpath "/*[local-name()='feed']/*[local-name()='entry']/*[local-name()='title']/text()" ${{ runner.temp }}/swift-releases.xml | sort -rn > ${SWIFT_VERSIONS_FILE}
151152
152153
# if we hardcode the latest builds, we would need to update them every time a new snapshot is released
153154

0 commit comments

Comments
 (0)