Skip to content

[version-4-0] Document Verified Packs (#1749) #1112

[version-4-0] Document Verified Packs (#1749)

[version-4-0] Document Verified Packs (#1749) #1112

name: image_optimizer
# Image Optimizer docs: https://github.com/calibreapp/image-actions
on:
pull_request:
paths:
- "**.jpg"
- "**.jpeg"
- "**.png"
- "**.webp"
concurrency:
group: image-${{ github.ref }}
cancel-in-progress: true
jobs:
run-ci:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
if: ${{ !github.event.pull_request.draft }}
steps:
# If the condition above is not met, aka, the PR is not in draft status, then this step is skipped.
# Because this step is part of the critical path, omission of this step will result in remaining CI steps not gettinge executed.
# As of 8/8/2022 there is now way to enforce this beahvior in GitHub Actions CI.
- run: exit 0
image-optimizer:
name: Image Optimization
needs: [run-ci]
runs-on:
group: 'Doc Runners'
labels: docbot
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Compress Images
uses: calibreapp/image-actions@main
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
ignorePaths: "node_modules/**,build"