mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2024-11-25 12:49:26 +01:00
🔥 Deletes broken SVG compression
Signed-off-by: Bjorn Lammers <walkxnl@gmail.com>
This commit is contained in:
parent
4377583f1c
commit
278777a0cf
1 changed files with 0 additions and 32 deletions
32
.github/workflows/svg-compression.yml
vendored
32
.github/workflows/svg-compression.yml
vendored
|
@ -1,32 +0,0 @@
|
||||||
name: 🗜️ SVG Compression
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * 0'
|
|
||||||
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 npm install -g svgo
|
|
||||||
|
|
||||||
- name: Compress SVGs
|
|
||||||
run: |
|
|
||||||
echo "🎨 Compressing SVGs..."
|
|
||||||
find svg/ -iname "*.svg" -print0 | xargs -0 -P 4 -I{} sh -c 'echo "Compressing {}"; svgo --quiet --multipass {}' || true
|
|
||||||
|
|
||||||
- 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 SVGs" || exit 0
|
|
||||||
git pull --ff-only
|
|
||||||
git push
|
|
Loading…
Reference in a new issue