Skip to content

Commit

Permalink
github: Update the version of SCST for the Coverity action
Browse files Browse the repository at this point in the history
  • Loading branch information
lnocturno committed Dec 28, 2022
1 parent e48a300 commit 01c489c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01c489c

Please sign in to comment.