File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -147,8 +147,14 @@ runs:
147
147
# fetch the Atom feed for the latest releases
148
148
curl -fsSL --retry 8 --retry-connrefused https://github.com/skiptools/swift-android-toolchain/releases.atom --output ${{ runner.temp }}/swift-releases.xml
149
149
SWIFT_VERSIONS_FILE=${{ runner.temp }}/swift-versions.txt
150
+
150
151
#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}
152
+ #xmllint --xpath "/*[local-name()='feed']/*[local-name()='entry']/*[local-name()='title']/text()" ${{ runner.temp }}/swift-releases.xml | sort -rn > ${SWIFT_VERSIONS_FILE}
153
+ xpath -q -e '/feed/entry/title/text()' ${{ runner.temp }}/swift-releases.xml | sort -rn > ${SWIFT_VERSIONS_FILE}
154
+
155
+ # yq or xmllint are best for this, but they aren't installed by
156
+ # 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}
152
158
153
159
# if we hardcode the latest builds, we would need to update them every time a new snapshot is released
154
160
You can’t perform that action at this time.
0 commit comments