name: Check file size on: # or directly `on: [push]` to run the action on every push on any branch pull_request: branches: [main] # to run this workflow manually from the Actions tab workflow_dispatch: # Least privilege: lfs-warning reads the PR's files and, on detection, adds the # `lfs-detected!` label (issues API) and posts a PR comment (pull-requests API). permissions: contents: read issues: write pull-requests: write jobs: sync-to-hub: runs-on: ubuntu-latest steps: - name: Check large files # SHA-pinned third-party action (supply-chain hardening). uses: ActionsDesk/lfs-warning@1a3a74543c2cf92cc97aa1bad190a500bcb3829c # v2.0 with: filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces