Skip to content

 This project is dedicated to collecting high-quality macOS software and organizing them systematically by different categories for easy search and use.

Auto-commit updated RSS feeds in CI

小弟调调67f2bf2eff1c
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ffaded6d..8fe60a37 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -22,6 +22,19 @@ jobs:
- run: npm run build
- run: npm run create:ast
- run: npm run feed
+
+ - name: Commit updated RSS feeds
+ run: |
+ if git diff --quiet -- feed/*.xml; then
+ echo "No RSS feed changes to commit."
+ exit 0
+ fi
+ git config user.name "github-actions[bot]"
+ git config user.email "github-actions[bot]@users.noreply.github.com"
+ git add feed/*.xml
+ git commit -m "chore: update RSS feeds [skip ci]"
+ git push
+
- run: cp -rp feed/*.xml dist
- name: Deploy