From 773922bfff0bd28b0247b5072712e80db6d4c047 Mon Sep 17 00:00:00 2001 From: Guillaume Bordier Date: Thu, 15 Jul 2021 13:18:39 +0200 Subject: [PATCH] Functions Rename (#88) * fix OUTPUT.md path in validate.yml pipeline * renamed functions in pipelines and workflows to Invoke-AzOpsPush and Invoke-AzOpsPull Co-authored-by: Guillaume Bordier --- .github/workflows/pull.yml | 2 +- .github/workflows/push.yml | 2 +- .github/workflows/validate.yml | 2 +- .pipelines/pull.yml | 2 +- .pipelines/push.yml | 2 +- .pipelines/validate.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index a92436c..ef2932b 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -182,7 +182,7 @@ jobs: if ($env:ACTION -eq "Enterprise-Scale Deployment") { Set-PSFConfig -FullName AzOps.Core.SkipResource -Value $false } - Initialize-AzOpsRepository -Rebuild + Invoke-AzOpsPull -Rebuild Get-Job | Remove-Job -Force env: ACTION: ${{ github.event.action }} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index e2912c4..c1defd5 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -93,5 +93,5 @@ jobs: Import-PSFConfig -Path settings.json -Schema MetaJson $diff = Get-Content -Path /tmp/diff.txt $module = Get-Module -Name AzOps - $module.Invoke({ Invoke-AzOpsChange -ChangeSet $diff }) + $module.Invoke({ Invoke-AzOpsPush -ChangeSet $diff }) Get-Job | Remove-Job -Force diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 40c880f..f0ad207 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -89,7 +89,7 @@ jobs: Import-PSFConfig -Path settings.json -Schema MetaJson $diff = Get-Content -Path /tmp/diff.txt $module = Get-Module -Name AzOps - $module.Invoke({ Invoke-AzOpsChange -ChangeSet $diff -WhatIf }) + $module.Invoke({ Invoke-AzOpsPush -ChangeSet $diff -WhatIf }) Get-Job | Remove-Job -Force # diff --git a/.pipelines/pull.yml b/.pipelines/pull.yml index 236e695..0572f0b 100644 --- a/.pipelines/pull.yml +++ b/.pipelines/pull.yml @@ -191,7 +191,7 @@ jobs: targetType: "inline" script: | Import-PSFConfig -Path settings.json -Schema MetaJson - Initialize-AzOpsRepository -Rebuild + Invoke-AzOpsPull -Rebuild Get-Job | Remove-Job -Force # diff --git a/.pipelines/push.yml b/.pipelines/push.yml index e0d13dd..9cc0f8d 100644 --- a/.pipelines/push.yml +++ b/.pipelines/push.yml @@ -109,5 +109,5 @@ jobs: Initialize-AzOpsEnvironment $diff = Get-Content -Path /tmp/diff.txt $module = Get-Module -Name AzOps - $module.Invoke({ Invoke-AzOpsChange -ChangeSet $diff }) + $module.Invoke({ Invoke-AzOpsPush -ChangeSet $diff }) Get-Job | Remove-Job -Force diff --git a/.pipelines/validate.yml b/.pipelines/validate.yml index e8cc5f4..c93b4aa 100644 --- a/.pipelines/validate.yml +++ b/.pipelines/validate.yml @@ -99,7 +99,7 @@ jobs: Initialize-AzOpsEnvironment $diff = Get-Content -Path /tmp/diff.txt $module = Get-Module -Name AzOps - $module.Invoke({ Invoke-AzOpsChange -ChangeSet $diff -whatIf }) + $module.Invoke({ Invoke-AzOpsPush -ChangeSet $diff -whatIf }) Get-Job | Remove-Job -Force #