Skip to content

Commit

Permalink
check if directory exits
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaid-maker committed May 23, 2024
1 parent b0a9c9b commit 3d64376
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 3d64376

Please sign in to comment.