Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cyclingbyte committed Aug 28, 2024
1 parent 4e787bc commit 0488018
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/actions/gh-pages/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ runs:
mkdir -p "$RUNNER_TEMP/artifacts/$target"
# Remove symbolic and hard links, and copy the rest
find "$path" -type l -exec rm {} \; # Remove symbolic links
find "$path" -type f -links +1 -exec rm {} \; # Remove hard links
cp -r "$path"/* "$RUNNER_TEMP/artifacts/$target"
elif [ -f "$path" ]; then
echo "Processing file $path"
Expand All @@ -44,6 +45,14 @@ runs:
exit 1
fi
done
echo "Calculating total size of artifacts..."
total_size=$(du -sb $RUNNER_TEMP/artifacts | cut -f1)
if [ $total_size -gt 10000000000 ]; then
echo "Error: The total size of artifacts exceeds 10GB."
exit 1
fi
echo "Finished processing."
- name: List artifact files
Expand Down

0 comments on commit 0488018

Please sign in to comment.