Skip to content

Commit

Permalink
Update static_analysis.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamir91 committed Nov 7, 2023
1 parent ab5a3cf commit 346a828
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/static_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 346a828

Please sign in to comment.