chore(deps-gha): Bump calibreapp/image-actions from 80b3ba2b30cc4d1935d24959841821cf324f23ab to 2eb45761f5b763c3824c9871410128a2e4288407 #200
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@2eb45761f5b763c3824c9871410128a2e4288407 | |
with: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} |