Skip to content

Commit

Permalink
Update fetchRss.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
raileo98 authored Oct 17, 2024
1 parent ab9ceaa commit b490244
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/fetchRss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,10 @@ jobs:
- name: 上傳 RSS 文件
run: |
git add *.rss
git commit -m "Upload RSS file"
git push origin main
# 檢查是否有變更
if git diff --cached --exit-code; then
echo "沒有變更可提交,跳過上傳"
else
git commit -m "Upload RSS file"
git push origin main
fi

0 comments on commit b490244

Please sign in to comment.