Skip to content

Remove Unused Images #1

Remove Unused Images

Remove Unused Images #1

name: Remove Unused Images
on:
workflow_dispatch:
branches:
- gh-pages
jobs:
remove-unused-images:
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: Remove Unused Images
run: npm run remove-unused-images
- name: Create Pull Request if Needed
uses: peter-evans/create-pull-request@v4
with:
title: Auto Removed Images
branch: auto-removed-images
branch-suffix: short-commit-hash
commit-message: Auto Removed Images
base: gh-pages
body: |
This PR was automatically generated by a GitHub Action.
It removes all images that are not being used in any blog post.