Skip to content

Commit

Permalink
Create imagecompress.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeSteam authored Feb 18, 2024
1 parent 2b6c00b commit d4daabe
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/imagecompress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# https://github.com/calibreapp/image-actions?tab=readme-ov-file#compress-on-demand-or-on-schedule
name: Compress Images
on:
workflow_dispatch:

jobs:
build:
name: calibreapp/image-actions
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Compress Images
id: calibre
uses: calibreapp/image-actions@main
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
compressOnly: true
- name: Create New Pull Request If Needed
if: steps.calibre.outputs.markdown != ''
uses: peter-evans/create-pull-request@v4
with:
title: Compressed Images Nightly
branch-suffix: timestamp
commit-message: Compressed Images
body: ${{ steps.calibre.outputs.markdown }}

0 comments on commit d4daabe

Please sign in to comment.