2022-05-22 17:47:01 -07:00
|
|
|
name: Compress Images
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '**.jpg'
|
|
|
|
- '**.jpeg'
|
|
|
|
- '**.png'
|
|
|
|
- '**.webp'
|
|
|
|
|
2023-08-15 08:36:42 -03:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-05-22 17:47:01 -07:00
|
|
|
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
|
2023-08-15 08:36:42 -03:00
|
|
|
permissions:
|
|
|
|
# allow calibreapp/image-actions to update PRs
|
|
|
|
pull-requests: write
|
2022-05-22 17:47:01 -07:00
|
|
|
steps:
|
2023-11-21 18:02:44 +02:00
|
|
|
- name: Clone repository
|
2023-09-13 12:47:26 +03:00
|
|
|
uses: actions/checkout@v4
|
2022-11-09 09:21:55 +02:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2022-05-22 17:47:01 -07:00
|
|
|
|
|
|
|
- name: Compress Images
|
|
|
|
uses: calibreapp/image-actions@1.1.0
|
|
|
|
with:
|
|
|
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|