mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-24 23:15:46 -05:00
handle the case where there is no changes
This commit is contained in:
parent
d2b91c7128
commit
b72825bf5c
8
.github/workflows/deploy.yaml
vendored
8
.github/workflows/deploy.yaml
vendored
@ -33,8 +33,12 @@ jobs:
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git add .
|
||||
git commit -m "Update submodule via GitHub Action"
|
||||
git push origin main
|
||||
if git diff-index --quiet HEAD --; then
|
||||
echo "No changes to commit"
|
||||
else
|
||||
git commit -m "Update submodule via GitHub Action"
|
||||
git push origin main
|
||||
fi
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18.14
|
||||
|
||||
Loading…
Reference in New Issue
Block a user