ci: check idf version excluding qa tags

This commit is contained in:
Fu Hanxi 2024-03-21 08:40:13 +01:00
parent 22ee3e8aa6
commit 745ec15c2b
No known key found for this signature in database
GPG Key ID: 19399699CF3C4B16

View File

@ -24,7 +24,7 @@ cmake_ver_minor=$(get_ver_from_cmake IDF_VERSION_MINOR)
cmake_ver_patch=$(get_ver_from_cmake IDF_VERSION_PATCH)
version_from_cmake="${cmake_ver_major}.${cmake_ver_minor}.${cmake_ver_patch}"
git_desc=$(git describe)
git_desc=$(git describe --exclude 'qa-test-*')
git_desc_regex="^v([0-9]+)\.([0-9]+)(\.([0-9]+))?.*$"
if [[ ! ${git_desc} =~ ${git_desc_regex} ]]; then
echo "Could not determine the version from 'git describe' output: ${git_desc}"