Files
tabler/.github/workflows/calibreapp-image-actions.yml

37 lines
1.2 KiB
YAML

name: Compress Images
on:
pull_request:
paths:
- '**.jpg'
- '**.jpeg'
- '**.png'
- '**.webp'
permissions:
contents: write
pull-requests: write
jobs:
build:
# Only run on Pull Requests within the same repository, and not from forks.
if: github.event.pull_request.head.repo.full_name == github.repository
name: calibreapp/image-actions
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Compress Images
# pinned to a commit: this job holds a write token
uses: calibreapp/image-actions@c3752f0cc46d3f73677f20c7bfe20ed4601ba2a3 # main, 2026-09-02
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# docs images go through astro:assets, which makes the webp files at build
# time; lossy PNG compression here only degrades the source.
# The README preview screenshots stay lossless: the palette quantization
# left visible shapes on the light cards (see #3186)
ignorePaths: 'node_modules/**,docs/images/**,shared/static/tabler-preview*.png'