From 17efcec6804027961815316cff4ee811e8f5bad5 Mon Sep 17 00:00:00 2001 From: Jerome Brown Date: Thu, 20 Feb 2025 17:50:05 +1300 Subject: [PATCH] Correct passing a tag to the `Sync-ALZPolicies.ps1` script (#883) The GitHub API needs the path to be `tags` and not `tag`. https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#get-a-release-by-tag-name --- Scripts/CloudAdoptionFramework/Sync-ALZPolicies.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/CloudAdoptionFramework/Sync-ALZPolicies.ps1 b/Scripts/CloudAdoptionFramework/Sync-ALZPolicies.ps1 index 5e147dc7..3a6333b0 100644 --- a/Scripts/CloudAdoptionFramework/Sync-ALZPolicies.ps1 +++ b/Scripts/CloudAdoptionFramework/Sync-ALZPolicies.ps1 @@ -5,7 +5,7 @@ Param( [string] $DefinitionsRootFolder, [Parameter(Mandatory = $false)] - [ValidateScript({ ($_ -eq 'latest') -or ($_.StartsWith("tag/")) }, ErrorMessage = "Allowed values are 'latest' and 'tag/TAG_NAME'")] + [ValidateScript({ ($_ -eq 'latest') -or ($_.StartsWith("tags/")) }, ErrorMessage = "Allowed values are 'latest' and 'tags/TAG_NAME'")] [string] $GithubRelease = 'latest', [Parameter(Mandatory = $false)]