Skip to content

Commit

Permalink
update and refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Noahnc committed Oct 25, 2023
1 parent 76bee12 commit 28193e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cli-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 28193e0

Please sign in to comment.