Skip to content

Commit

Permalink
[build.ps1] Add config filename option
Browse files Browse the repository at this point in the history
- Fixes Azure#15128
  • Loading branch information
chamons committed Jul 23, 2021
1 parent dd2d1fd commit 838f9aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eng/scripts/build.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Requires -Version 7.0
param($filter, [switch]$clean, [switch]$vet, [switch]$generate, [switch]$skipBuild)
param($filter, [switch]$clean, [switch]$vet, [switch]$generate, [switch]$skipBuild, $config = "autorest.md")

. $PSScriptRoot/meta_generation.ps1

Expand Down Expand Up @@ -36,7 +36,7 @@ $keys | ForEach-Object { $sdks[$_] } | ForEach-Object {

if ($_.generate) {
Write-Host "##[command]Executing autorest.go in " $_.path
$autorestPath = $_.path + "/autorest.md"
$autorestPath = $_.path + "/" + $config

if (ShouldGenerate-AutorestConfig $autorestPath) {
Generate-AutorestConfig $autorestPath
Expand Down

0 comments on commit 838f9aa

Please sign in to comment.