mirror of
https://github.com/microsoft/mcp.git
synced 2026-11-04 12:01:31 +00:00
* Add Get-PackageApprovalStatus script. * Sync eng/common directory with azure-sdk-tools repository for Tools PR 16660 * Sync eng/common directory with azure-sdk-tools repository for Tools PR 16660 * Sync eng/common directory with azure-sdk-tools repository for Tools PR 16660 * Sync eng/common directory with azure-sdk-tools repository for Tools PR 16660 * Sync eng/common directory with azure-sdk-tools repository for Tools PR 16660 --------- Co-authored-by: Travis Prescott <trpresco@microsoft.com> Co-authored-by: azure-sdk <azuresdk@microsoft.com>
38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
parameters:
|
|
- name: PackageInfoFiles
|
|
type: object
|
|
- name: RepoOwner
|
|
type: string
|
|
default: ""
|
|
- name: SourceRootPath
|
|
type: string
|
|
default: $(Build.SourcesDirectory)
|
|
|
|
steps:
|
|
# Include this template only after package publishing in the release stage.
|
|
# The consuming pipeline must install the Azure SDK Tools CLI before including this template.
|
|
# Use install-azsdk-cli.yml or otherwise set $(AZSDK) to the azsdk executable path.
|
|
- task: AzureCLI@2
|
|
displayName: Mark Packages Released
|
|
condition: >-
|
|
and(
|
|
succeeded(),
|
|
not(
|
|
and(
|
|
eq(variables['Skip.MarkPackageReleased'], 'true'),
|
|
eq(variables['IsRequesterAuthorizedToSkipApiReview'], 'true')
|
|
)
|
|
)
|
|
)
|
|
inputs:
|
|
azureSubscription: "ADO to ARH Service Connection"
|
|
scriptType: pscore
|
|
scriptLocation: scriptPath
|
|
scriptPath: ${{ parameters.SourceRootPath }}/eng/common/scripts/Mark-PackageReleased.ps1
|
|
# PackageInfoFiles example: @('a/file1.json','a/file2.json')
|
|
arguments: >
|
|
-PackageInfoFiles @('${{ join(''',''', parameters.PackageInfoFiles) }}')
|
|
-RepoOwner '${{ parameters.RepoOwner }}'
|
|
-AzSdkExePath '$(AZSDK)'
|
|
workingDirectory: $(Pipeline.Workspace)
|