Skip to content

Replace archived SVGO action with direct svgo CLI#922

Merged
KodeStar merged 1 commit into
masterfrom
fix-svgo-workflow
Jul 9, 2026
Merged

Replace archived SVGO action with direct svgo CLI#922
KodeStar merged 1 commit into
masterfrom
fix-svgo-workflow

Conversation

@KodeStar

@KodeStar KodeStar commented Jul 9, 2026

Copy link
Copy Markdown
Member

Fixes #722ericcornelissen/svgo-action was archived on 2024-04-30.

The workflow now checks out the repo, computes the SVGs changed in the push (falling back to all tracked SVGs when the before-commit is unavailable), runs npx svgo@3 with the existing .github/workflows/svgo.config.js, and commits the results back via the same git-auto-commit-action with the identical Optimize N SVG(s) message. Trigger, permissions, and outcome are unchanged.

Validated locally: the existing config is svgo-v3 compatible (preset-default + removeDimensions + sortAttrs), optimization runs in-place on multiple files and is idempotent on already-optimized repo icons; YAML passes actionlint.

The ericcornelissen/svgo-action is unmaintained (archived 2024-04-30).
Keep the same behavior: on push to master, optimize the SVGs changed in
the push using the existing svgo.config.js and auto-commit the results
with the same 'Optimize N SVG(s)' message.

Closes #722
@KodeStar KodeStar force-pushed the fix-svgo-workflow branch from 129dd02 to 82f5037 Compare July 9, 2026 21:07
@KodeStar KodeStar merged commit b30e459 into master Jul 9, 2026
3 checks passed
@KodeStar KodeStar deleted the fix-svgo-workflow branch July 9, 2026 21:08
@LinuxServer-CI LinuxServer-CI moved this from PRs to Done in Issue & PR Tracker Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Replacement needed: SVGO action is no longer maintained per 2024-04-30

2 participants