mirror of
https://github.com/zoriya/astal.git
synced 2026-05-27 08:02:20 +00:00
fix github action
early exit when there are no changes
This commit is contained in:
@@ -50,11 +50,9 @@ jobs:
|
||||
run: |
|
||||
cd dist
|
||||
git add .
|
||||
if git diff --cached --quiet; then
|
||||
echo "No changes to commit."
|
||||
if [ -n "$(git diff --cached)" ]; then
|
||||
echo "No Changes Found"
|
||||
exit 0
|
||||
else
|
||||
echo "Changes detected, proceeding with commit."
|
||||
fi
|
||||
|
||||
- name: Push to Pages Repo
|
||||
|
||||
Reference in New Issue
Block a user