Skip to content

Instantly share code, notes, and snippets.

@TheShinriel
Created September 18, 2023 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheShinriel/3631e7dea6c8d6b5d83b9990f8e48dcc to your computer and use it in GitHub Desktop.
Save TheShinriel/3631e7dea6c8d6b5d83b9990f8e48dcc to your computer and use it in GitHub Desktop.
Optimise image by CI on PR
name: Compress images
on:
pull_request:
paths:
- "**.jpg"
- "**.jpeg"
- "**.png"
- "**.webp"
jobs:
image-optimization:
name: calibreapp/image-actions
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@v2
- name: Compress Images
id: calibre
uses: calibreapp/image-actions@main
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment