From 12b653f89ea0a08cb22c17ba8cbf9015c2d59d64 Mon Sep 17 00:00:00 2001 From: Bjorn Lammers Date: Sun, 16 Apr 2023 20:38:02 +0200 Subject: [PATCH] :bug: Fixes YAML errors Signed-off-by: Bjorn Lammers --- ...omrpession.yml => png-svg-compression.yml} | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) rename .github/workflows/{png-svg-comrpession.yml => png-svg-compression.yml} (79%) diff --git a/.github/workflows/png-svg-comrpession.yml b/.github/workflows/png-svg-compression.yml similarity index 79% rename from .github/workflows/png-svg-comrpession.yml rename to .github/workflows/png-svg-compression.yml index 4bb229a2..4335c2aa 100644 --- a/.github/workflows/png-svg-comrpession.yml +++ b/.github/workflows/png-svg-compression.yml @@ -1,24 +1,22 @@ name: 🗜️ PNG & SVG Compression - -on: +'on': push: branches: - main workflow_dispatch: - + jobs: compress-images: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - - name: Install Dependencies run: | sudo apt-get update sudo apt-get install -y pngquant sudo npm install -g svgo - + - name: Compress PNGs run: | total_files=$(find png/ -iname "*.png" | wc -l) @@ -30,7 +28,7 @@ jobs: pngquant --force --ext .png --skip-if-larger --verbose --speed 1 $file current_file=$((current_file+1)) done - + - name: Compress SVGs run: | total_files=$(find svg/ -iname "*.svg" | wc -l) @@ -42,12 +40,12 @@ jobs: svgo --quiet --multipass --show-progress $file current_file=$((current_file+1)) done - - - name: Load to GitHub - run: |- - git diff - git config --global user.email "noreply@walkx.fyi" - git config --global user.name "Dashboard Icons Bot" - git add -A - git commit -m ":clamp: Compresses PNGs & SVGs" || exit 0 - git push + + - name: Load to GitHub + run: |- + git diff + git config --global user.email "noreply@walkx.fyi" + git config --global user.name "Dashboard Icons Bot" + git add -A + git commit -m ":clamp: Compresses PNGs & SVGs" || exit 0 + git push