From 01c7a0584168fc1d0d4fd64956858953b57b52cd Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 28 Dec 2021 17:49:12 -0600 Subject: [PATCH] Only push to api-docs when changes --- azure-pipelines.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 97efe7f01..be2d21e59 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -853,8 +853,13 @@ stages: git config --global user.name "Servarr" git checkout -b api-docs git add . - git commit -m 'Automated API Docs update' - git push -f --set-upstream origin api-docs + if git status | grep -q modified + then + git commit -am 'Automated API Docs update' + git push -f --set-upstream origin api-docs + else + echo "No changes since last run" + fi displayName: Commit API Doc Change - task: CreatePullRequest@1 displayName: PR Change to Github