Skip to content

fix(2022.2): fix broken external links and broken anchors #258

fix(2022.2): fix broken external links and broken anchors

fix(2022.2): fix broken external links and broken anchors #258

name: Compress Images
on:
pull_request:
# Run Image Actions when JPG, JPEG, PNG or WebP files are added or changed
paths:
- '**.jpg'
- '**.jpeg'
- '**.png'
- '**.webp'
- '.github/workflows/compress-images.yml'
permissions:
pull-requests: write
contents: write
jobs:
compress:
# The GITHUB_TOKEN only has read permissions when the Pull Request is created from a forked repositories
# It doesn't allow `image-actions` to push to the related branch nor to create PR comment
if: ${{ !github.event.pull_request.head.repo.fork }}
name: calibreapp/image-actions
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Compress Images
uses: calibreapp/image-actions@06b947f9bc52d0c23ceae9c59ba3294f0d5d7aad
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}