-
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
22 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Compress images on demand (workflow_dispatch), and on pushes to the default branch (push). | ||
# Open a Pull Request if any images can be compressed. | ||
name: Compress Images | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: "mg/compress-images" | ||
|
||
jobs: | ||
compress: | ||
name: calibreapp/image-actions | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
- name: Compress Images | ||
id: calibre | ||
uses: calibreapp/image-actions@1.1.0 | ||
with: | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
compressOnly: false |