Skip to content

Compress Images On-Demand #171

Compress Images On-Demand

Compress Images On-Demand #171

name: Compress Images On-Demand
on:
workflow_dispatch:
schedule:
- cron: '00 23 * * 0'
jobs:
build:
name: calibreapp/image-actions
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.0
with:
lfs: true
- name: Compress Images
id: calibre
uses: calibreapp/image-actions@main
with:
compressOnly: true
jpegQuality: '90'
jpegProgressive: false
pngQuality: '90'
webpQuality: '90'
githubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Create New Pull Request If Needed
if: steps.calibre.outputs.markdown != ''
uses: peter-evans/create-pull-request@v5.0.2
with:
title: Compressed Images Nightly
branch-suffix: timestamp
commit-message: Compressed Images
body: ${{ steps.calibre.outputs.markdown }}