Skip to content

Commit ac46a70

Browse files
committed
ci: Workaround for download-artifact action bug
The GitHub download-artifact action may fail to download some artifact files without any errors, and this often causes the SDK test jobs to fail. This commit works around the above issue by using the `gh` CLI command to download the SDK bundle artifact. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent dffa1c4 commit ac46a70

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,10 +1532,21 @@ jobs:
15321532
echo "BUNDLE_DIR=${BUNDLE_DIR}" >> $GITHUB_ENV
15331533
15341534
- name: Download distribution bundle
1535-
uses: actions/download-artifact@v4
1536-
with:
1537-
name: ${{ env.BUNDLE_NAME }}
1538-
path: artifacts
1535+
# FIXME: download-artifact is buggy and may fail to download some files
1536+
# without any errors. For more details, refer to the GitHub issue
1537+
# actions/download-artifact#396.
1538+
# uses: actions/download-artifact@v4
1539+
# with:
1540+
# name: ${{ env.BUNDLE_NAME }}
1541+
# path: artifacts
1542+
run: |
1543+
gh run download \
1544+
-R ${GITHUB_REPOSITORY} \
1545+
${GITHUB_RUN_ID} \
1546+
-n ${BUNDLE_NAME} \
1547+
-D artifacts
1548+
env:
1549+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15391550

15401551
- name: Install distribution bundle
15411552
run: |

0 commit comments

Comments
 (0)