Skip to content

Commit

Permalink
Update convert-images.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcelibs authored Jan 3, 2025
1 parent 580c93f commit 79bb0bc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/convert-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 79bb0bc

Please sign in to comment.