Skip to content

Commit

Permalink
Update optimize-svg.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nermalcat69 committed Sep 12, 2024
1 parent 57fee85 commit 63e79fd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/optimize-svg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
optimize:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -31,7 +31,13 @@ jobs:
git config --global user.name "zerops-gh"
git config --global user.email "[email protected]"
- name: Check for changes
id: git-status
run: |
git diff --exit-code || echo "Changes detected"
- name: Commit and push changes
if: steps.git-status.outputs.git-status == 'Changes detected'
run: |
git add .
git commit -m "Optimize SVG files"
Expand Down

0 comments on commit 63e79fd

Please sign in to comment.