From 750877db1ae5abe7f32b6b3231b6616f678ddb31 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sat, 17 Aug 2024 19:46:15 -0400 Subject: [PATCH] Remove docs on PRs - Update wiki step --- .gitea/workflows/DRBv3_docs.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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