From 12170bde1ff9bfa719c4b921c7784282d41145bf Mon Sep 17 00:00:00 2001 From: boubou19 Date: Wed, 23 Jul 2025 22:06:27 +0200 Subject: [PATCH] fix issues --- .github/workflows/optimize-images.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/optimize-images.yml b/.github/workflows/optimize-images.yml index bec1cac..25ba84c 100644 --- a/.github/workflows/optimize-images.yml +++ b/.github/workflows/optimize-images.yml @@ -20,15 +20,7 @@ jobs: find . -type f -name "*.png" ! -path "./.git/*" -exec optipng -o7 -nc {} + - name: Check for changes - id: git-diff - run: | - if [[ -n "$(git status --porcelain)" ]]; then - echo "changed=true" - else - echo "changed=false" - fi - - - name: Check for changes + id: check_changes run: | if [[ -n "$(git status --porcelain)" ]]; then echo "needs_compression=true" >> "$GITHUB_OUTPUT"