From 01c489c05f8ff0f2e27ebff9234787cab09b07b8 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Wed, 28 Dec 2022 15:51:02 +0300 Subject: [PATCH] github: Update the version of SCST for the Coverity action --- .github/workflows/coverity.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 0fb12aed1..9477cfd8b 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -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