Skip to content

Commit ebf7193

Browse files
committed
Retry attempts to fetch the latest SDK release tag
1 parent ec5d837 commit ebf7193

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/test-action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ jobs:
5151
package-path: apple/swift-algorithms
5252
run-tests: ${{ matrix.os != 'macos-15' }} # no tests on macOS ARM
5353

54-
- name: Checkout skiptools/swift-sqlite
54+
- name: Checkout skiptools/swift-sqlcipher
5555
uses: actions/checkout@v4
5656
with:
57-
repository: skiptools/swift-sqlite
58-
path: skiptools/swift-sqlite
59-
- name: Test skiptools/swift-sqlite
57+
repository: skiptools/swift-sqlcipher
58+
path: skiptools/swift-sqlcipher
59+
- name: Test skiptools/swift-sqlcipher
6060
uses: ./swift-android-action/
6161
#uses: skiptools/swift-android-action@v2
6262
with:
6363
swift-version: ${{ matrix.swift-version }}
64-
package-path: skiptools/swift-sqlite
64+
package-path: skiptools/swift-sqlcipher
6565
run-tests: ${{ matrix.os != 'macos-15' }} # no tests on macOS ARM
6666

6767
toolchain-setup:

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ 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 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')
103103
echo "swift-version=${LATEST_TAG}" >> $GITHUB_OUTPUT
104104
else
105105
echo "swift-version=${{ inputs.swift-version }}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)