From 9467353998655c31fb83ffc7e184effa6959c9ca Mon Sep 17 00:00:00 2001 From: anunol Date: Wed, 28 Aug 2024 09:29:52 +0800 Subject: [PATCH] Create Checkfilesize.yml --- .github/workflows/Checkfilesize.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/Checkfilesize.yml diff --git a/.github/workflows/Checkfilesize.yml b/.github/workflows/Checkfilesize.yml new file mode 100644 index 000000000..4f4620556 --- /dev/null +++ b/.github/workflows/Checkfilesize.yml @@ -0,0 +1,16 @@ +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: + +jobs: + sync-to-hub: + runs-on: ubuntu-latest + steps: + - name: Check large files + uses: ActionsDesk/lfs-warning@v2.0 + with: + filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces