Skip to content

Merge pull request #751 from HWienhold/feat/kitchenowl #188

Merge pull request #751 from HWienhold/feat/kitchenowl

Merge pull request #751 from HWienhold/feat/kitchenowl #188

Workflow file for this run

---
# GitHub Action uses SVGO to Minify and removeDimensions of SVG files
name: Optimize SVG Files
on:
push:
branches: [master]
permissions:
contents: write
jobs:
svgs:
name: SVGs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Optimize SVGs
uses: ericcornelissen/svgo-action@v4
id: svgo
with:
repo-token: ${{secrets.GITHUB_TOKEN}}
svgo-config: .github/workflows/svgo.config.js
- name: Commit optimizations
uses: stefanzweifel/git-auto-commit-action@v5
if: ${{steps.svgo.outputs.DID_OPTIMIZE}}
with:
commit_message: Optimize ${{steps.svgo.outputs.OPTIMIZED_COUNT}} SVG(s) # yamllint disable-line rule:line-length