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

32 lines
791 B
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@26d5b54006db4da7a1b29903f33404a6f77b58cf # main, 2026-09-02
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}