Created
September 18, 2023 22:41
-
-
Save TheShinriel/3631e7dea6c8d6b5d83b9990f8e48dcc to your computer and use it in GitHub Desktop.
Optimise image by CI on PR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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