mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Only push to api-docs when changes
This commit is contained in:
@@ -853,8 +853,13 @@ stages:
|
|||||||
git config --global user.name "Servarr"
|
git config --global user.name "Servarr"
|
||||||
git checkout -b api-docs
|
git checkout -b api-docs
|
||||||
git add .
|
git add .
|
||||||
git commit -m 'Automated API Docs update'
|
if git status | grep -q modified
|
||||||
|
then
|
||||||
|
git commit -am 'Automated API Docs update'
|
||||||
git push -f --set-upstream origin api-docs
|
git push -f --set-upstream origin api-docs
|
||||||
|
else
|
||||||
|
echo "No changes since last run"
|
||||||
|
fi
|
||||||
displayName: Commit API Doc Change
|
displayName: Commit API Doc Change
|
||||||
- task: CreatePullRequest@1
|
- task: CreatePullRequest@1
|
||||||
displayName: PR Change to Github
|
displayName: PR Change to Github
|
||||||
|
Reference in New Issue
Block a user