-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57fee85
commit 63e79fd
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ on: | |
jobs: | ||
optimize: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
@@ -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" | ||
|