diff --git a/.github/workflows/images_build_windows.yml b/.github/workflows/images_build_windows.yml index e273f85e8..8e7deee3a 100644 --- a/.github/workflows/images_build_windows.yml +++ b/.github/workflows/images_build_windows.yml @@ -38,10 +38,9 @@ jobs: - name: Check build.json file id: build_exists run: | - if [[ ! -f "./build.json" ]]; then - echo "::error::File build.json is missing" - exit 1 - fi + if (-not(Test-Path -Path $ConfigPath -PathType Leaf)) { + throw "::error::File build.json is missing" + } - name: Prepare Operating System list id: os