Skip to content

Commit ab3726b

Browse files
committed
Run image compression
1 parent cc163c0 commit ab3726b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/compress-images.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Compress images on demand (workflow_dispatch), and on pushes to the default branch (push).
2+
# Open a Pull Request if any images can be compressed.
3+
name: Compress Images
4+
5+
on:
6+
workflow_dispatch:
7+
push:
8+
branches: "mg/compress-images"
9+
10+
jobs:
11+
compress:
12+
name: calibreapp/image-actions
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v4
17+
- name: Compress Images
18+
id: calibre
19+
uses: calibreapp/[email protected]
20+
with:
21+
githubToken: ${{ secrets.GITHUB_TOKEN }}
22+
compressOnly: false

0 commit comments

Comments
 (0)