From 76fc8dedd613052f7b44e7d374feee3f9aeed133 Mon Sep 17 00:00:00 2001 From: Erika Gressi Date: Mon, 18 Sep 2023 17:55:22 +0200 Subject: [PATCH] adjust utilities relative path in gh actions --- .github/actions/templates/getModuleTestFiles/action.yml | 2 +- .github/actions/templates/getWorkflowInput/action.yml | 2 +- .github/actions/templates/setEnvironment/action.yml | 2 +- .../actions/templates/validateModuleDeployment/action.yml | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/actions/templates/getModuleTestFiles/action.yml b/.github/actions/templates/getModuleTestFiles/action.yml index 1cce2fb82e..b342b09d34 100644 --- a/.github/actions/templates/getModuleTestFiles/action.yml +++ b/.github/actions/templates/getModuleTestFiles/action.yml @@ -21,7 +21,7 @@ runs: # Grouping task logs Write-Output '::group::Get parameter files' # Load used functions - . (Join-Path $env:GITHUB_WORKSPACE 'utilities' 'pipelines' 'sharedScripts' 'Get-ModuleTestFileList.ps1') + . (Join-Path $env:GITHUB_WORKSPACE 'avm' 'utilities' 'pipelines' 'sharedScripts' 'Get-ModuleTestFileList.ps1') $functionInput = @{ ModulePath = Join-Path $env:GITHUB_WORKSPACE '${{ inputs.modulePath }}' diff --git a/.github/actions/templates/getWorkflowInput/action.yml b/.github/actions/templates/getWorkflowInput/action.yml index b9a7a25eb3..a6e92dd858 100644 --- a/.github/actions/templates/getWorkflowInput/action.yml +++ b/.github/actions/templates/getWorkflowInput/action.yml @@ -74,7 +74,7 @@ runs: # Otherwise retrieve default values else { # Load used functions - . (Join-Path $env:GITHUB_WORKSPACE 'utilities' 'pipelines' 'sharedScripts' 'Get-GitHubWorkflowDefaultInput.ps1') + . (Join-Path $env:GITHUB_WORKSPACE 'avm' 'utilities' 'pipelines' 'sharedScripts' 'Get-GitHubWorkflowDefaultInput.ps1') $functionInput = @{ workflowPath = '${{ inputs.workflowPath }}' diff --git a/.github/actions/templates/setEnvironment/action.yml b/.github/actions/templates/setEnvironment/action.yml index d85985c32c..a640470d7e 100644 --- a/.github/actions/templates/setEnvironment/action.yml +++ b/.github/actions/templates/setEnvironment/action.yml @@ -41,7 +41,7 @@ runs: Write-Verbose "Caller job id: ${{ github.job }}" -Verbose # Load used functions - . (Join-Path $env:GITHUB_WORKSPACE 'utilities' 'pipelines' 'sharedScripts' 'Set-EnvironmentOnAgent.ps1') + . (Join-Path $env:GITHUB_WORKSPACE 'avm' 'utilities' 'pipelines' 'sharedScripts' 'Set-EnvironmentOnAgent.ps1') # Define PS modules to install on the runner $modules = @( diff --git a/.github/actions/templates/validateModuleDeployment/action.yml b/.github/actions/templates/validateModuleDeployment/action.yml index 309b7c9e0e..51e0cb86d6 100644 --- a/.github/actions/templates/validateModuleDeployment/action.yml +++ b/.github/actions/templates/validateModuleDeployment/action.yml @@ -68,7 +68,7 @@ runs: Write-Output '::group::Replace tokens in template file' # Load used functions - . (Join-Path $env:GITHUB_WORKSPACE 'utilities' 'pipelines' 'tokensReplacement' 'Convert-TokensInFileList.ps1') + . (Join-Path $env:GITHUB_WORKSPACE 'avm' 'utilities' 'pipelines' 'tokensReplacement' 'Convert-TokensInFileList.ps1') # Get target files $targetFileList = @('${{ inputs.templateFilePath }}') @@ -127,7 +127,7 @@ runs: Write-Output '::group::Validate template file' # Load used functions - . (Join-Path $env:GITHUB_WORKSPACE 'utilities' 'pipelines' 'resourceDeployment' 'Test-TemplateDeployment.ps1') + . (Join-Path $env:GITHUB_WORKSPACE 'avm' 'utilities' 'pipelines' 'resourceDeployment' 'Test-TemplateDeployment.ps1') # Prepare general parameters # -------------------------- @@ -184,7 +184,7 @@ runs: Write-Output '::group::Deploy template file' # Load used functions - . (Join-Path $env:GITHUB_WORKSPACE 'utilities' 'pipelines' 'resourceDeployment' 'New-TemplateDeployment.ps1') + . (Join-Path $env:GITHUB_WORKSPACE 'avm' 'utilities' 'pipelines' 'resourceDeployment' 'New-TemplateDeployment.ps1') # Prepare general parameters # -------------------------- @@ -261,7 +261,7 @@ runs: Write-Output '::group::Remove deployed resources' # Load used function - . (Join-Path $env:GITHUB_WORKSPACE 'utilities' 'pipelines' 'resourceRemoval' 'Initialize-DeploymentRemoval.ps1') + . (Join-Path $env:GITHUB_WORKSPACE 'avm' 'utilities' 'pipelines' 'resourceRemoval' 'Initialize-DeploymentRemoval.ps1') $functionInput = @{ TemplateFilePath = Join-Path $env:GITHUB_WORKSPACE '${{ inputs.templateFilePath }}'