Skip to content

Fixes for the between-2023-and-2024 landing page (#418) #221

Fixes for the between-2023-and-2024 landing page (#418)

Fixes for the between-2023-and-2024 landing page (#418) #221

name: Compress Images on Push to main branch
on:
push:
branches:
- main
paths:
- "**.jpg"
- "**.jpeg"
- "**.png"
jobs:
build:
name: calibreapp/image-actions
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- 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 != '' && github.event.commits[0].author.name != 'GitHubActions'
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5
with:
title: Compressed Images
branch-suffix: timestamp
commit-message: Compressed Images
body: ${{ steps.calibre.outputs.markdown }}