Skip to content

Commit 0708149

Browse files
wenxi-zengclaude
andcommitted
ci: probe more git URL variations (focus on git/ path that returned 500)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e3ab3f4 commit 0708149

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/resolve-dependencies.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,24 @@ jobs:
5858
- name: Probe Artifactory Swift URL formats
5959
run: |
6060
set -euo pipefail
61-
REPO="segmentio/sovran-swift.git"
6261
PATHS=(
63-
"artifactory/api/swift/${SWIFT_VIRTUAL_REPO}/${REPO}/info/refs?service=git-upload-pack"
64-
"artifactory/git/${SWIFT_VIRTUAL_REPO}/${REPO}/info/refs?service=git-upload-pack"
65-
"artifactory/${SWIFT_VIRTUAL_REPO}/${REPO}/info/refs?service=git-upload-pack"
66-
"artifactory/api/vcs/${SWIFT_VIRTUAL_REPO}/${REPO}/info/refs?service=git-upload-pack"
62+
"artifactory/git/virtual-swift-thirdparty/segmentio/sovran-swift.git/info/refs?service=git-upload-pack"
63+
"artifactory/git/virtual-swift-thirdparty/segmentio/sovran-swift/info/refs?service=git-upload-pack"
64+
"artifactory/git/virtual-swift-thirdparty/sovran-swift.git/info/refs?service=git-upload-pack"
65+
"artifactory/git/remote-swift-github/segmentio/sovran-swift.git/info/refs?service=git-upload-pack"
66+
"artifactory/git/remote-swift-github/segmentio/sovran-swift/info/refs?service=git-upload-pack"
67+
"artifactory/remote-swift-github/segmentio/sovran-swift.git/info/refs?service=git-upload-pack"
6768
)
6869
for path in "${PATHS[@]}"; do
6970
URL="${ARTIFACTORY_URL}/${path}"
70-
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
71+
RESPONSE=$(curl -s -w "\n%{http_code}" \
7172
-H "Authorization: Bearer ${ART_TOKEN}" "$URL")
72-
echo "$HTTP_CODE — $URL"
73+
HTTP_CODE=$(echo "$RESPONSE" | tail -1)
74+
BODY=$(echo "$RESPONSE" | sed '$d' | head -5)
75+
echo "$HTTP_CODE — $path"
76+
if [ "$HTTP_CODE" != "404" ]; then
77+
echo " Body: $BODY"
78+
fi
7379
done
7480
7581
- name: Configure SPM to resolve through Artifactory

0 commit comments

Comments
 (0)