-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
8 deletions.
There are no files selected for viewing
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
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 }} |