mirror of
https://github.com/zoriya/astal.git
synced 2026-06-01 09:45:31 +00:00
fix: github action
only push if there are changes
This commit is contained in:
@@ -49,14 +49,12 @@ jobs:
|
||||
- name: Check for Changes
|
||||
run: |
|
||||
cd dist
|
||||
git add .
|
||||
if [ -n "$(git diff --cached)" ]; then
|
||||
echo "No Changes Found"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
- name: Push to Pages Repo
|
||||
run: |
|
||||
cd dist
|
||||
git commit -m "Deployed from https://github.com/${{ github.repository }}/commit/${{ github.sha }}"
|
||||
git push origin main
|
||||
git add .
|
||||
if [ -n "$(git diff --cached)" ]; then
|
||||
git commit -m "Deployed from https://github.com/${{ github.repository }}/commit/${{ github.sha }}"
|
||||
git push origin main
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user