-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
1 changed file
with
7 additions
and
4 deletions.
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 |
---|---|---|
|
@@ -30,10 +30,13 @@ jobs: | |
|
||
# 提交转换后的图片 | ||
- name: Commit and push changes | ||
continue-on-error: true | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
git add images/ images.json | ||
git commit -m "Auto-generate images.json and converted images" || echo "No changes to commit" | ||
git push || echo "No changes to push" | ||
if [ -n "$(git status --porcelain)" ]; then | ||
git add images/ images.json | ||
git commit -m "Auto-generate images.json and converted images" | ||
git push | ||
else | ||
echo "No changes to commit, skipping push" | ||
fi |