Skip to content

Commit 8e6299d

Browse files
committed
github connection now a parameter
1 parent 97e827d commit 8e6299d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.azure-pipelines/buildAndPackage.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,7 @@ stages:
7373
runOnce:
7474
deploy:
7575
steps:
76-
- template: templates/github-release-stage/version-and-release.yml
76+
- template: templates/version-and-release.yml
77+
parameters:
78+
gitConnection: 'ramsessanchez'
7779
- template: templates/alert-failure.yml

.azure-pipelines/templates/github-release/version-and-release.yml renamed to .azure-pipelines/templates/version-and-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
parameters:
2+
- name: gitConnection
3+
type: string
4+
default: ''
5+
16
steps:
27
- task: PowerShell@2
38
inputs:
@@ -6,7 +11,7 @@ steps:
611

712
- task: GitHubRelease@1
813
inputs:
9-
gitHubConnection: 'ramsessanchez'
14+
gitHubConnection: ${{ parameters.gitConnection }}
1015
repositoryName: '$(Build.Repository.Name)'
1116
action: 'create'
1217
target: '$(Build.SourceVersion)'

0 commit comments

Comments
 (0)