This commit is contained in:
Wes Haggard 2023-12-06 15:07:42 -08:00
Родитель adfae99035
Коммит f92e8e69bd
3 изменённых файлов: 10 добавлений и 8 удалений

Просмотреть файл

@ -67,6 +67,14 @@ steps:
git clone https://$(azuresdk-github-pat)@github.com/Azure/azure-rest-api-specs $(System.DefaultWorkingDirectory)/azure-rest-api-specs
displayName: Clone azure-rest-api-specs repo
- task: PowerShell@2
displayName: Update Rest Specs
inputs:
pwsh: true
filePath: $(AzureSDKClonePath)/eng/scripts/Update-Spec-Versions.ps1
arguments: >
-specsRoot $(System.DefaultWorkingDirectory)/azure-rest-api-specs/
- bash: |
npm install
workingDirectory: $(AzureSDKClonePath)/eng/scripts/inventory-dashboard

Просмотреть файл

@ -8,12 +8,6 @@ $ProgressPreference = "SilentlyContinue"; # Disable invoke-webrequest progress d
. (Join-Path $PSScriptRoot PackageList-Helpers.ps1)
# spec - json file
# path
# name
# version
# TODO: map to SDK library via readme.md or tspconfig.yaml
function CreateSpec($jsonFilesInPath, $relSpecPath)
{
if ($relSpecPath -notmatch "^(?<serviceFamily>[^/]+)/(?<type>data-plane|resource-manager)/(?<rpPath>.+)?(?<verType>preview|stable)/(?<version>[^/]+)$") {
@ -88,7 +82,7 @@ function CreateSpec($jsonFilesInPath, $relSpecPath)
function FindAllSpecs($specsRoot)
{
$potentialSpecs = Get-ChildItem -Recurse -Include *.json $specsRoot
#TODO: Map to tspconfig if
#TODO: Map to tspconfig
#$potentialTypeSpecs = Get-ChildItem -Recurse -Include tspconfig.yaml $specsRoot
$processedPaths = @{}

Просмотреть файл

@ -1,5 +1,5 @@
---
title: Azure Rest API Specs(Latest)
title: Azure Rest API Specs (Latest)
layout: default
sidebar: releases_sidebar
header: true