Performance improvements in core library #1196
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check File Size | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
file-size-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v44 | |
- name: Filter by size | |
run: | | |
large_added_files=$(find ${{ steps.changed-files.outputs.added_files }} -maxdepth 0 -size +1M) | |
if [ -n "$large_added_files" ]; then | |
echo "Large files added: $large_added_files" | |
echo "# Large files added:" >> $GITHUB_STEP_SUMMARY | |
echo "$large_added_files" >> $GITHUB_STEP_SUMMARY | |
exit 1 | |
fi |