diff --git a/.gitea/workflows/DRBv3_docs.yaml b/.gitea/workflows/DRBv3_docs.yaml index 7d8099b..62d41c4 100644 --- a/.gitea/workflows/DRBv3_docs.yaml +++ b/.gitea/workflows/DRBv3_docs.yaml @@ -4,10 +4,6 @@ on: push: branches: - main -# TODO - REMOVE AFTER TESTING - pull_request: - branches: - - "*" # schedule: # - cron: '0 0 * * 1' # Every Monday at midnight (UTC) @@ -42,5 +38,10 @@ jobs: git config user.name "gitea-actions" git config user.email "gitea-actions@cusano.net" git add . - git commit -m "Update wiki from JSDoc" - git push \ No newline at end of file + # Check if there are any changes to commit + if git diff --cached --quiet; then + echo "No changes to commit." + else + git commit -m "Update wiki from JSDoc" + git push + fi \ No newline at end of file