From 4e00f429a3274cb5372cab032ee2a009a92293dd Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Sat, 9 Oct 2021 10:17:10 +0200 Subject: [PATCH] Updated build script --- .github/workflows/images_build_windows.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/images_build_windows.yml b/.github/workflows/images_build_windows.yml index b9683b539..cdbddebc2 100644 --- a/.github/workflows/images_build_windows.yml +++ b/.github/workflows/images_build_windows.yml @@ -39,13 +39,16 @@ jobs: - name: Check build.json file id: build_exists + shell: bash run: | - if (-not(Test-Path -Path "./build.json" -PathType Leaf)) { - throw "::error::File build.json is missing" - } + if [[ ! -f "./build.json" ]]; then + echo "::error::File build.json is missing" + exit 1 + fi - name: Prepare Operating System list id: os + shell: bash run: | os_list=$(jq -r '.["os-windows"] | keys | [ .[] | tostring ] | @json' "./build.json") @@ -53,8 +56,9 @@ jobs: - name: Prepare Zabbix component list id: components + shell: bash run: | - $component_list='["agent","agent2"]' + component_list='["agent","agent2"]' echo "::set-output name=list::$component_list"