Skip to content

Commit a80a9af

Browse files
committed
Add support for matching nightly-6.1 to 6.1-SNAPSHOT
1 parent 9a5ef58 commit a80a9af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ runs:
154154
#SWIFT_VERSION="${LATEST_SNAPSHOT}"
155155
# use the latest snapshot release
156156
SWIFT_VERSION=$(cat ~/swift-versions.txt | grep -- '-SNAPSHOT' | head -n 1)
157+
elif [[ "${SWIFT_VERSION}" == nightly-* ]]; then
158+
# e.g., nightly-6.1 will match 6.1-DEVELOPMENT-SNAPSHOT-*
159+
SWIFT_VERSION=$(echo ${SWIFT_VERSION} | sed 's;nightly-;;g')
160+
SWIFT_VERSION=$(cat ~/swift-versions.txt | grep -- "${SWIFT_VERSION}-SNAPSHOT" | head -n 1)
157161
else
158162
# match "6.0" to "6.0.3"
159163
# match "6.1" to "6.1-DEVELOPMENT-SNAPSHOT-2025-03-07-a"

0 commit comments

Comments
 (0)