Optimize SVGs #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Optimize SVGs | |
on: | |
schedule: | |
- cron: "0 0 * * 1" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
optimize-svgs: | |
runs-on: ubuntu-latest | |
if: github.repository == 'LawnchairLauncher/lawnicons' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Optimize SVGs | |
uses: ericcornelissen/[email protected] | |
id: svgo | |
- 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) |