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 ) {