This action works to prevent both:
from being checked-in in non-pointer format/not stored in LFS. The latter happens if the client does not have git-lfs installed.
This action scans files in commits of a pull request and will mark the pull request as failed, add a lfs-detected! label and reply with an issue comment if any of the following is true about any of the pull request files:
filter: lfs but does not contain the string version https://git-lfs.github.com/spec/v1
Note: Remember to configure the branch protection rule and select the LFS-warning status when you enable the Required status check to pass option.

filesizelimitOptional. set's the file size limit threshold. Accepts b (bytes), mb (megabytes) and gb (gigabytes) as units of measurement, if omitted interprets as bytes.
Default 10mb.
tokenOptional. Takes a valid GitHub Token from the Repo by default.
exclusionPatternsOptional. A newline delimited list of glob patterns that match checked in files to exclude form LFS Warning.
labelNameOptional. The name of the label, defaults to lfs-detected!
labelColorOptional. The color of the label, defaults to ff1493.
lfsFilesReturns an array of possible detected large file(s)
Consume the action by referencing the stable release
uses: ppremk/lfs-warning@v3.2
with:
token: ${{ secrets.GITHUB_TOKEN }} # Optional
filesizelimit: 10MB
exclusionPatterns: |
**/*.png
TypeScript
99.3%
This action works to prevent both:
from being checked-in in non-pointer format/not stored in LFS. The latter happens if the client does not have git-lfs installed.
This action scans files in commits of a pull request and will mark the pull request as failed, add a lfs-detected! label and reply with an issue comment if any of the following is true about any of the pull request files:
filter: lfs but does not contain the string version https://git-lfs.github.com/spec/v1
Note: Remember to configure the branch protection rule and select the LFS-warning status when you enable the Required status check to pass option.

filesizelimitOptional. set's the file size limit threshold. Accepts b (bytes), mb (megabytes) and gb (gigabytes) as units of measurement, if omitted interprets as bytes.
Default 10mb.
tokenOptional. Takes a valid GitHub Token from the Repo by default.
exclusionPatternsOptional. A newline delimited list of glob patterns that match checked in files to exclude form LFS Warning.
labelNameOptional. The name of the label, defaults to lfs-detected!
labelColorOptional. The color of the label, defaults to ff1493.
lfsFilesReturns an array of possible detected large file(s)
Consume the action by referencing the stable release
uses: ppremk/lfs-warning@v3.2
with:
token: ${{ secrets.GITHUB_TOKEN }} # Optional
filesizelimit: 10MB
exclusionPatterns: |
**/*.png
TypeScript
99.3%