Spaces:
Sleeping
Sleeping
Download .github/workflows/check-file-size.yml from DecodeMarketing/decode_tools: direct link, hf CLI and curl.
- Browser
- Download file 793 Bytes
-
https://huggingface.co/spaces/DecodeMarketing/decode_tools/resolve/main/.github/workflows/check-file-size.yml
- Command line
-
hf download hf://spaces/DecodeMarketing/decode_tools/.github/workflows/check-file-size.yml
-
curl -L -o check-file-size.yml https://huggingface.co/spaces/DecodeMarketing/decode_tools/resolve/main/.github/workflows/check-file-size.yml
793 Bytes
| 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 | |