Skip to content

Make loading of the detective assembly more resilient. #1147

Make loading of the detective assembly more resilient.

Make loading of the detective assembly more resilient. #1147

Workflow file for this run

name: Check file size
on: pull_request
jobs:
check_file_size:
name: Check file size
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get changed files
id: get_changed_files
uses: tj-actions/changed-files@v39
- name: Check file size
run: |
for file in ${{ steps.get_changed_files.outputs.all_changed_files }}; do
[[ -n $(find ${file} -type f -size +50M) ]] && { echo "❌ $file exceeds file size limit"; exit 1; } || echo "✅ $file"
done