This action scans files in commits of a Pull Request and compares it against the configured file size limit threshold. If the threshold is exceeded for any of the file, the action will mark the pull request as failed, add a lfs-detected!
label and reply with an issue comment containing detected large file(s).
Note: Remember to configure the branch protection rule and select the LFS-warning
status when you enable the Required status check to pass
option.
Required, set's the file size limit threshold in bytes. Default "10MB".
Optional. Takes a valid GitHub Token from the Repo by default.
Returns an array of possible detected large file(s)
Consume the action by referencing the stable branch
uses: actionsdesk/lfs-warning@v2.0
with:
token: ${{ secrets.GITHUB_TOKEN }} # Optional
filesizelimit: '10485760' # 10 MB is 10485760 Bytes