Add spec index automation
This commit is contained in:
Родитель
adfae99035
Коммит
f92e8e69bd
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче