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