From 33fea1d126612c240c9bd470d678cd0d278a8fc3 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Mon, 5 May 2025 22:33:25 +0100 Subject: [PATCH] Refactor benchmark report download step to improve error handling and add directory listing --- .github/workflows/docs-and-testcov.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs-and-testcov.yml b/.github/workflows/docs-and-testcov.yml index 215926c..ad6fe1e 100644 --- a/.github/workflows/docs-and-testcov.yml +++ b/.github/workflows/docs-and-testcov.yml @@ -115,8 +115,13 @@ jobs: exit 1 fi - curl -L -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - -o benchmark-report.zip "$artifact_url" + curl -L -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "$artifact_url" + + + + # Print all files in the current directory + echo "Files in the current directory:" + ls -al # check if the zip file is valid if ! unzip -tq benchmark-report.zip; then @@ -124,10 +129,6 @@ jobs: exit 1 fi - # Print all files in the current directory - echo "Files in the current directory:" - ls -al - unzip benchmark-report.zip -d benchmark-report # there will be a tar file in the benchmark-report directory # called artifact.tar. unzip it into the benchmark-report