Skip to content

Commit d996f88

Browse files
committed
chore: add logging for artifact download process in ci.yml
1 parent f1b9303 commit d996f88

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,19 @@ jobs:
190190
191191
mkdir -p test_results
192192
193+
echo "Downloading artifacts for run ID: $LAST_SUCCESSFUL_RUN_ID"
194+
193195
for ARTIFACT_ID in $ARTIFACT_IDS; do
194196
curl \
195197
-H "Accept: application/vnd.github+json" \
196198
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
197199
-H "X-GitHub-Api-Version: 2022-11-28" \
198200
-L -o my_artifact.zip \
199-
https://api.github.com/repos/${{ github.repository }}/actions/artifacts/"${ARTIFACT_ID}"/zip
201+
"https://api.github.com/repos/${{ github.repository }}/actions/artifacts/${ARTIFACT_ID}/zip"
200202
201203
unzip my_artifact.zip -d test_results 2> /dev/null || true
204+
echo "Contents of test_results directory for artifact ID: $ARTIFACT_ID"
205+
ls -l test_results
202206
rm my_artifact.zip
203207
done
204208

0 commit comments

Comments
 (0)