From: Gleb C. <lna...@ya...> - 2023-05-10 10:40:48
|
Commit: dede178 GitHub URL: https://github.com/SCST-project/scst/commit/dede17895aa7b63032ea20abaf4727f88322c4ed Author: Gleb Chesnokov Date: 2023-05-10T13:34:06+03:00 Log Message: ----------- github: Update the version of SCST for the Coverity action Modified Paths: -------------- .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 0fb12ae..9477cfd 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 |