Skip to content

update check_file_size.yml #1

update check_file_size.yml

update check_file_size.yml #1

name: Check file size
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch: # to run this workflow manually from the Actions tab
permissions: # Sets permissions of the GITHUB_TOKEN to allow lfs warning to work properly
contents: read
pull-requests: write
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- name: Check large files
uses: ppremk/lfs-warning@v3.2
with:
token: ${{ secrets.GITHUB_TOKEN }} # required with some permissions
filesizelimit: 10MB # this is 10MB so we can sync to HF Spaces