mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:00:01 +00:00
Add error handling for missing benchmark report zip file in CI workflow
This commit is contained in:
parent
aec6278a50
commit
bbcdbb4151
10
.github/workflows/docs-and-testcov.yml
vendored
10
.github/workflows/docs-and-testcov.yml
vendored
@ -118,9 +118,13 @@ jobs:
|
|||||||
curl -L -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
curl -L -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
||||||
-o benchmark-report.zip "$artifact_url"
|
-o benchmark-report.zip "$artifact_url"
|
||||||
|
|
||||||
mkdir -p benchmark-report
|
|
||||||
# print ls -a
|
# check if there is a benchmark-report.zip file
|
||||||
echo "$( ls -a benchmark-report )"
|
if [ ! -f benchmark-report.zip ]; then
|
||||||
|
echo "benchmark-report.zip not found!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
unzip benchmark-report.zip -d benchmark-report
|
unzip benchmark-report.zip -d benchmark-report
|
||||||
# there will be a tar file in the benchmark-report directory
|
# there will be a tar file in the benchmark-report directory
|
||||||
# called artifact.tar. unzip it into the benchmark-report
|
# called artifact.tar. unzip it into the benchmark-report
|
||||||
|
Loading…
x
Reference in New Issue
Block a user