Skip to content

Commit 7fbb3ff

Browse files
Fix PR creation in emitter pipeline (Azure#49409)
* test PR creation * fix output dir * move tsp-client job to regen step * fix indent * remove unset emitterversion * Set emitterVersion var * open as draft * fix openasdraft * fix arg * remiove quotes * Fix ps bool * double $ * emitterversion * Add shouldregenerate to mgmt * revert common * Update casing * test * revert archetype changes
1 parent 915e292 commit 7fbb3ff

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

eng/packages/http-client-csharp-mgmt/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ extends:
5454
${{ if eq(variables['System.TeamProject'], 'internal') }}:
5555
${{ if eq(variables['Build.Reason'], 'Manual') }}:
5656
ShouldPublish: ${{ parameters.ShouldPublish }}
57+
ShouldRegenerate: ${{ parameters.ShouldRegenerate }}
5758
${{ if startswith(variables['Build.SourceBranch'], 'refs/pull/') }}: # PR ref's can't be published to public, even in a manual run
5859
PublishPublic: false
5960
PublishDependsOnTest: false

eng/packages/http-client-csharp/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ extends:
5252
${{ if eq(variables['System.TeamProject'], 'internal') }}:
5353
${{ if eq(variables['Build.Reason'], 'Manual') }}:
5454
ShouldPublish: ${{ parameters.ShouldPublish }}
55+
ShouldRegenerate: ${{ parameters.ShouldRegenerate }}
5556
${{ if startswith(variables['Build.SourceBranch'], 'refs/pull/') }}: # PR ref's can't be published to public, even in a manual run
5657
PublishPublic: false
5758
PublishDependsOnTest: false

eng/scripts/typespec/Initialize-WorkingDirectory.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ function Initialize-Package($emitterPackagePath) {
5555
$emitterVersion = "$($emitterVersion.Split('-')[0])$PrereleaseSuffix"
5656
Write-Host "Updating version package.json to the new emitter version`n"
5757
Invoke-LoggedCommand "npm pkg set version=$emitterVersion"
58+
59+
Write-Host "Setting output variable 'emitterVersion' to $emitterVersion"
60+
Write-Host "##vso[task.setvariable variable=emitterVersion;isOutput=true]$emitterVersion"
5861
}
5962

6063
if ($UseTypeSpecNext) {

0 commit comments

Comments
 (0)