diff --git a/.github/workflows/lfs-warning.yml b/.github/workflows/lfs-warning.yml new file mode 100644 index 00000000000..c531edab392 --- /dev/null +++ b/.github/workflows/lfs-warning.yml @@ -0,0 +1,31 @@ +name: Large file warning + +on: + pull_request: + branches: ['**'] + paths: + - '**.jpg' + - '**.jpeg' + - '**.png' + - '**.webp' + - '**.avif' + +jobs: + lfs-warning: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + - name: Compress Images + uses: calibreapp/image-actions@main + with: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + jpegQuality: '85' + jpegProgressive: false + pngQuality: '80' + webpQuality: '85' + avifQuality: '75' + ignorePaths: 'node_modules/**,build' + minPctChange: '10' + compressOnly: false diff --git a/static/sample-delme.png b/static/sample-delme.png new file mode 100644 index 00000000000..e9bf9f4e851 Binary files /dev/null and b/static/sample-delme.png differ