mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 13:57:11 -04:00
Eliminate PR Extension from pipeline
This commit is contained in:
parent
01c7a05841
commit
9bad31af84
1 changed files with 4 additions and 10 deletions
|
@ -857,20 +857,14 @@ stages:
|
||||||
then
|
then
|
||||||
git commit -am 'Automated API Docs update'
|
git commit -am 'Automated API Docs update'
|
||||||
git push -f --set-upstream origin api-docs
|
git push -f --set-upstream origin api-docs
|
||||||
|
curl -X POST -H 'Authorization: token $GITHUB_TOKEN' -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/prowlarr/prowlarr/pulls -d '{"head":"api-docs","base":"develop","title":"Update API docs"}'
|
||||||
else
|
else
|
||||||
echo "No changes since last run"
|
echo "No changes since last run"
|
||||||
fi
|
fi
|
||||||
displayName: Commit API Doc Change
|
displayName: Commit API Doc Change
|
||||||
- task: CreatePullRequest@1
|
|
||||||
displayName: PR Change to Github
|
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
inputs:
|
env:
|
||||||
repoType: 'GitHub'
|
GITHUB_TOKEN: $(githubToken)
|
||||||
githubEndpoint: 'github release'
|
|
||||||
githubRepository: '$(Build.Repository.Name)'
|
|
||||||
sourceBranch: 'api-docs'
|
|
||||||
targetBranch: 'develop'
|
|
||||||
title: 'Update API Docs'
|
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
displayName: 'Copy openapi.json to: $(Build.ArtifactStagingDirectory)'
|
displayName: 'Copy openapi.json to: $(Build.ArtifactStagingDirectory)'
|
||||||
inputs:
|
inputs:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue