Skip to content

Commit

Permalink
CI: Update compress-images.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Jun 2, 2024
1 parent d0dc90b commit abea283
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/compress-images.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
# This workflow compresses images in PRs
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'

jobs:
compress:
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: Compress Images
name: calibreapp/image-actions
runs-on: ubuntu-latest

steps:
- name: Checkout
- name: Checkout Repo
uses: actions/checkout@v4

- name: Compress Images
uses: calibreapp/image-actions@1.1.0
uses: calibreapp/image-actions@main
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit abea283

Please sign in to comment.