Files
mcp-microsoft/eng/common/pipelines/templates/steps/mark-package-released.yml
T
6865d70a8d Sync eng/common directory with azure-sdk-tools for PR 16660 (#3428)
* 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>
2026-08-31 09:06:53 -07:00

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)