Skip to content

Commit 8f01fc0

Browse files
committed
Disable automatic check for latest tag due to frequent 403 errors
1 parent ebf7193 commit 8f01fc0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ runs:
9999
# translate swift-version "latest" into our known latest version
100100
if [ "${{ inputs.swift-version }}" == 'latest' ]; then
101101
# fetch the most recent release tag from the toolchain repo
102-
LATEST_TAG=$(curl -fsSL -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" --retry-all-errors --retry 100 --retry-max-time 600 https://api.github.com/repos/skiptools/swift-android-toolchain/releases/latest | jq -r '.tag_name')
102+
#LATEST_TAG=$(curl -fsSL -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" --retry-all-errors --retry 100 --retry-max-time 600 https://api.github.com/repos/skiptools/swift-android-toolchain/releases/latest | jq -r '.tag_name')
103+
# disabled because it frequently gives "The requested URL returned error: 403"
104+
LATEST_TAG="6.0.3"
103105
echo "swift-version=${LATEST_TAG}" >> $GITHUB_OUTPUT
104106
else
105107
echo "swift-version=${{ inputs.swift-version }}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)