From 46d965bc80e86e13c5c39aef9a204a308ce62e44 Mon Sep 17 00:00:00 2001 From: Jack Tracey <41163455+jtracey93@users.noreply.github.com> Date: Mon, 15 Apr 2024 17:37:20 +0200 Subject: [PATCH] fix: pwsh publish module index (#1683) ## Description Removing an unnecessary `-Force` and unrequired `SupportsShouldProcess` from the `Invoke-AvmJsonModuleIndexGeneration.ps1` ## Type of Change - [x] Update to CI Environment or utlities (Non-module effecting changes) - [ ] Azure Verified Module updates: - [ ] Bugfix containing backwards compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in `version.json`: - [ ] Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description. - [ ] The bug was found by the module author, and no one has opened an issue to report it yet. - [ ] Feature update backwards compatible feature updates, and I have bumped the MINOR version in `version.json`. - [ ] Breaking changes and I have bumped the MAJOR version in `version.json`. - [ ] Update to documentation ## Checklist - [ ] I'm sure there are no other open Pull Requests for the same update/change - [ ] I have run `Set-AVMModule` locally to generate the supporting module files. - [ ] My corresponding pipelines / checks run clean and green without any errors or warnings --- .github/workflows/avm.platform.publish-module-index-json.yml | 2 +- .../pipelines/platform/Invoke-AvmJsonModuleIndexGeneration.ps1 | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/avm.platform.publish-module-index-json.yml b/.github/workflows/avm.platform.publish-module-index-json.yml index d82f31317e..a8f2076487 100644 --- a/.github/workflows/avm.platform.publish-module-index-json.yml +++ b/.github/workflows/avm.platform.publish-module-index-json.yml @@ -51,7 +51,7 @@ jobs: Write-Verbose "Invoke task with" -Verbose Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose - if(-not (Invoke-AvmJsonModuleIndexGeneration @functionInput -Force)) { + if(-not (Invoke-AvmJsonModuleIndexGeneration @functionInput)) { Write-Output ('{0}={1}' -f 'anyErrorsOccurred', $true) >> $env:GITHUB_ENV } diff --git a/avm/utilities/pipelines/platform/Invoke-AvmJsonModuleIndexGeneration.ps1 b/avm/utilities/pipelines/platform/Invoke-AvmJsonModuleIndexGeneration.ps1 index 49a58895c5..c96eb49f15 100644 --- a/avm/utilities/pipelines/platform/Invoke-AvmJsonModuleIndexGeneration.ps1 +++ b/avm/utilities/pipelines/platform/Invoke-AvmJsonModuleIndexGeneration.ps1 @@ -40,7 +40,6 @@ The function requires Azure PowerShell Storage Module (Az.Storage) to be install #> function Invoke-AvmJsonModuleIndexGeneration { - [CmdletBinding(SupportsShouldProcess)] param ( [Parameter(Mandatory = $false)] [string] $storageAccountName = 'biceplivedatasaprod',