From 28193e099839662c8c54a499733f7de59607be51 Mon Sep 17 00:00:00 2001 From: Noahnc Date: Wed, 25 Oct 2023 16:50:50 +0200 Subject: [PATCH] update and refactoring --- .github/workflows/cli-integration-test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cli-integration-test.yml b/.github/workflows/cli-integration-test.yml index 3c142d9..610f9a7 100644 --- a/.github/workflows/cli-integration-test.yml +++ b/.github/workflows/cli-integration-test.yml @@ -57,18 +57,18 @@ jobs: throw "Errors have been detected" } - - name: Run InfraPatch report + - name: Run InfraPatch update shell: bash run: infrapatch --debug update --dump-json-statistics --confirm - - name: Check report result + - name: Check update result shell: pwsh run: | $report = Get-Content $env:report_json_file -Raw | ConvertFrom-Json if ( -not $report.total_resources -gt 0 ) { throw "Failed to get resources" } - if ( $report.resources_patched -gt 2 ) { + if ( -not ( $report.resources_patched -gt 3 ) ) { throw "No resources should be patched" } if ( $report.errors -gt 0 ) {