gradio/.github/workflows/large-files.yml
Abubakar Abid af320cf25e
Adds a GitHub action to detect if any files > 5 MB are present in the PR (#3013)
* Create large-files.yml

* Update CHANGELOG.md

* Update large-files.yml

* Update large-files.yml

* Update large-files.yml

* Update large-files.yml

* Update large-files.yml

* Update large-files.yml
2023-01-19 07:53:14 -08:00

22 lines
547 B
YAML

name: Check for large files
on:
pull_request:
jobs:
check-files:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Check for large files
uses: actionsdesk/lfs-warning@v3.2
with:
filesizelimit: 5MB