Skip to content

Merge pull request #24 from GoodMorninTech/create-pull-request/patch-… #62

Merge pull request #24 from GoodMorninTech/create-pull-request/patch-…

Merge pull request #24 from GoodMorninTech/create-pull-request/patch-… #62

Workflow file for this run

name: Compress Images
on:
workflow_dispatch:
pull_request:
paths:
- '**.jpg'
- '**.jpeg'
- '**.png'
- '**.webp'
push:
permissions:
pull-requests: write
contents: write
jobs:
build:
name: calibreapp/image-actions
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- 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:
token: ${{ secrets.GITHUB_TOKEN }}
title: Compressed Images
branch-suffix: timestamp
commit-message: Compressed Images
body: ${{ steps.calibre.outputs.markdown }}