Skip to content

Resize all images

Resize all images #7

name: Resize all images
on:
workflow_dispatch:
branches:
- gh-pages
jobs:
generate-read-more:
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16.13.x
cache: npm
- run: npm install
- name: Resize Images
run: npm run resize-images
- name: Create Pull Request if Needed
uses: peter-evans/create-pull-request@v4
with:
title: Auto Resized Images
branch: auto-resized-images
commit-message: Auto Resized Images
base: gh-pages
body: |
This PR was automatically generated by a GitHub Action.
It contains all images that have been resized to a maximum of 1140px wide and 1140px high.