From 346a828168f32d1389d7d3916142a3674df9c8ca Mon Sep 17 00:00:00 2001 From: Tamir Date: Tue, 7 Nov 2023 15:57:28 +0200 Subject: [PATCH] Update static_analysis.yaml --- .github/workflows/static_analysis.yaml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/static_analysis.yaml b/.github/workflows/static_analysis.yaml index ea87719397a..b86a1000a8b 100644 --- a/.github/workflows/static_analysis.yaml +++ b/.github/workflows/static_analysis.yaml @@ -50,18 +50,16 @@ jobs: # Retrieve CMake minimal version from the last line of the tool output. current_cmake_version=$(echo ${output} | grep "cmake_minimum_required") - regex_pattern="VERSION [0-9]+\.[0-9]+\.[0-9]+" - if ! [[ "$current_cmake_version" =~ $regex_pattern ]]; - then - echo "Error - CMake version $current_cmake_version does not match the pattern VERSION dd.dd.dd" - exit 1 - fi + #regex_pattern="VERSION [0-9]+\.[0-9]+\.[0-9]+" + #if ! [[ "$current_cmake_version" =~ $regex_pattern ]]; + #then + # echo "Error - CMake version $current_cmake_version does not match the pattern VERSION dd.dd.dd" + # exit 1 + #fi # Leave only digits of major and minor version in the variable - current_cmake_version=$(echo ${current_cmake_version} | grep -oP "\d+\.\d+") + # current_cmake_version=$(echo ${current_cmake_version} | grep -oP "\d+\.\d+") - # Cust variable to strng because float can't be transfered by GITHUB_OUTPUT - current_cmake_version="$current_cmake_version" echo "Debug: current_cmake_version = $current_cmake_version" # Saving cmake minimal version string in GitHub output