|
77 | 77 | value: $(NODE_VERSION_LTS_MAINTENANCE) |
78 | 78 | - name: PythonVersion |
79 | 79 | value: '3.13' |
| 80 | + - name: PipelineArtifactsName |
| 81 | + value: 'packages' |
80 | 82 |
|
81 | 83 | pool: |
82 | 84 | name: $(LINUXPOOL) |
@@ -127,3 +129,28 @@ jobs: |
127 | 129 | --sdk-release-type beta \ |
128 | 130 | --rm local |
129 | 131 | displayName: 'Generate SDK' |
| 132 | +
|
| 133 | + - template: /eng/common/pipelines/templates/steps/publish-artifact.yml |
| 134 | + parameters: |
| 135 | + ArtifactName: $(SpecGenSdkArtifactName) |
| 136 | + ArtifactPath: "$(System.DefaultWorkingDirectory)/$(SpecGenSdkArtifactPath)" |
| 137 | + CustomCondition: and(succeededOrFailed(), ne(variables['SpecGenSdkArtifactName'], '')) |
| 138 | + |
| 139 | + - template: /eng/common/pipelines/templates/steps/publish-artifact.yml |
| 140 | + parameters: |
| 141 | + ArtifactName: $(PipelineArtifactsName) |
| 142 | + ArtifactPath: $(StagedArtifactsFolder) |
| 143 | + CustomCondition: and(succeededOrFailed(), ne(variables['StagedArtifactsFolder'], '')) |
| 144 | + |
| 145 | + - ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: |
| 146 | + - pwsh: | |
| 147 | + . $(SpecRepoDirectory)/eng/common/scripts/Helpers/ApiView-Helpers.ps1 |
| 148 | + Create-API-Review ` |
| 149 | + -specGenSDKArtifactPath "$(System.DefaultWorkingDirectory)/$(SpecGenSdkArtifactPath)/$(SpecGenSdkArtifactName).json" ` |
| 150 | + -apiviewArtifactName "$(PipelineArtifactsName)" ` |
| 151 | + -buildId "$(Build.BuildId)" ` |
| 152 | + -commitish "$(System.PullRequest.SourceCommitId)" ` |
| 153 | + -repoName "Azure/azure-sdk-for-js" ` |
| 154 | + -pullRequestNumber "$(System.PullRequest.PullRequestNumber)" |
| 155 | + displayName: 'Detect API Change and Create API Review' |
| 156 | + condition: and(succeeded(), eq(variables['HasAPIViewArtifact'], 'true')) |
0 commit comments