|
|
@ -62,17 +62,17 @@ stages:
|
|
|
|
$response = Invoke-WebRequest -Uri "https://ombireleasenote.azurewebsites.net/api/ReleaseNotesFunction?buildId=$(Build.BuildId)"
|
|
|
|
$response = Invoke-WebRequest -Uri "https://ombireleasenote.azurewebsites.net/api/ReleaseNotesFunction?buildId=$(Build.BuildId)"
|
|
|
|
Write-Host "##vso[task.setvariable variable=ReleaseNotes;]$response"
|
|
|
|
Write-Host "##vso[task.setvariable variable=ReleaseNotes;]$response"
|
|
|
|
|
|
|
|
|
|
|
|
- task: GitHubRelease@1
|
|
|
|
# - task: GitHubRelease@1
|
|
|
|
inputs:
|
|
|
|
# inputs:
|
|
|
|
gitHubConnection: 'github.com_tidusjar'
|
|
|
|
# gitHubConnection: 'github.com_tidusjar'
|
|
|
|
repositoryName: 'tidusjar/Ombi'
|
|
|
|
# repositoryName: 'tidusjar/Ombi'
|
|
|
|
action: 'create'
|
|
|
|
# action: 'create'
|
|
|
|
target: '$(Build.SourceVersion)'
|
|
|
|
# target: '$(Build.SourceVersion)'
|
|
|
|
tagSource: 'userSpecifiedTag'
|
|
|
|
# tagSource: 'userSpecifiedTag'
|
|
|
|
tag: '$(gitTag)'
|
|
|
|
# tag: '$(gitTag)'
|
|
|
|
isDraft: true
|
|
|
|
# isDraft: true
|
|
|
|
changeLogCompareToRelease: 'lastNonDraftRelease'
|
|
|
|
# changeLogCompareToRelease: 'lastNonDraftRelease'
|
|
|
|
changeLogType: 'commitBased'
|
|
|
|
# changeLogType: 'commitBased'
|
|
|
|
|
|
|
|
|
|
|
|
- task: GitHubRelease@1
|
|
|
|
- task: GitHubRelease@1
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
@ -90,4 +90,4 @@ stages:
|
|
|
|
isPreRelease: true
|
|
|
|
isPreRelease: true
|
|
|
|
changeLogCompareToRelease: 'lastNonDraftRelease'
|
|
|
|
changeLogCompareToRelease: 'lastNonDraftRelease'
|
|
|
|
changeLogType: 'commitBased'
|
|
|
|
changeLogType: 'commitBased'
|
|
|
|
condition: and(succeeded(), eq(variables['PublishToGithub'], 'true'))
|
|
|
|
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/feature/v4'))
|
|
|
|