github: Update the version of SCST for the Coverity action

This commit is contained in:
Gleb Chesnokov
2022-12-28 15:51:02 +03:00
parent e48a3003f9
commit 01c489c05f

View File

@@ -15,7 +15,11 @@ jobs:
- name: Get version
id: get_version
run: |
echo ::set-output name=version::"3.7-pre-$(git rev-parse --short HEAD)"
version_without_revesion="$(sed -n 's/^\#define[[:blank:]]SCST_VERSION_NAME[[:blank:]]*\"\([^-]*\).*\"/\1/p' scst/include/scst_const.h)"
revision="$(git rev-parse --short HEAD)"
version="$version_without_revesion-$revision"
echo ::set-output name=version::"$version"
- name: Run Coverity Build
uses: vapier/coverity-scan-action@v1