Skip to content

Commit

Permalink
fix(ci): Trying to fix benchmark-turbopack workflow (#8090)
Browse files Browse the repository at this point in the history
### Description

Trying to fix the workflow by checking if the directory exists, a team
member should check.


![Screenshot_20240521_182347](https://github.com/vercel/turbo/assets/53424436/a4dab48f-9514-4147-93ee-0775aefef624)

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
  • Loading branch information
Zaid-maker committed Jul 31, 2024
1 parent 75870c6 commit d3db2f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/bench-turbopack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,11 @@ jobs:

- name: Copy benchmark results
run: |
find artifacts -size 0 -delete
if [ ! -d artifacts ]; then
echo "Artifacts directory not found. Skipping copy."
exit 0
fi
find artifacts -size 0 -delete || true
mkdir -p data/${{ steps.date.outputs.year }}/${{ steps.date.outputs.month }}/ubuntu-latest-8-core/${{ steps.date.outputs.date }}-${{ github.sha }}/
mv artifacts/bench_* data/${{ steps.date.outputs.year }}/${{ steps.date.outputs.month }}/ubuntu-latest-8-core/${{ steps.date.outputs.date }}-${{ github.sha }}/
Expand Down

0 comments on commit d3db2f5

Please sign in to comment.