diff --git a/azure-pipelines.yml b/azure-pipelines.yml index be2d21e59..802b77ff9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -857,20 +857,14 @@ stages: then git commit -am 'Automated API Docs update' 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 echo "No changes since last run" fi - displayName: Commit API Doc Change - - task: CreatePullRequest@1 - displayName: PR Change to Github + displayName: Commit API Doc Change continueOnError: true - inputs: - repoType: 'GitHub' - githubEndpoint: 'github release' - githubRepository: '$(Build.Repository.Name)' - sourceBranch: 'api-docs' - targetBranch: 'develop' - title: 'Update API Docs' + env: + GITHUB_TOKEN: $(githubToken) - task: CopyFiles@2 displayName: 'Copy openapi.json to: $(Build.ArtifactStagingDirectory)' inputs: