diff --git a/.gitea/workflows/update-readme.yaml b/.gitea/workflows/update-readme.yaml index 6ad758d..d481576 100644 --- a/.gitea/workflows/update-readme.yaml +++ b/.gitea/workflows/update-readme.yaml @@ -33,8 +33,10 @@ jobs: git config user.name "Ares-Bot" git config user.email "ares@beane.me" git add README.md + if git diff --staged --quiet; then - echo "No changes" + echo "No changes detected." else git commit -m "chore: sync code velocity to $FORMATTED_LOC LOC [skip ci]" - git push http://${{ secrets.GITHUB_TOKEN }}@gitea-http:3000/${{ github.repository }}.git ${{ github.ref_name }} + git push http://${{ secrets.GITHUB_TOKEN }}@gitea-http:3000/${{ github.repository }}.git main + fi