forked from roc-streaming/roc-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added script for version check in CI checks
Added conditional execution for check-version script Extracting check-version into release checks job
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
|
||
tagname="$(git tag -l | tail -n1)" | ||
|
||
header_tagname="v$(python3 scripts/scons_helpers/parse-version.py)" | ||
|
||
if [[ "$tagname" != "$header_tagname" ]]; then | ||
echo >&2 | ||
echo >&2"version check FAILED" | ||
echo >&2"the git tag name and version declared in version.h is not the same" | ||
echo >&2"${tagname} git version tag" | ||
echo >&2"${header_tagname} header version tag" | ||
echo >&2 | ||
exit 1 | ||
fi | ||
|
||
echo "version check SUCCEEDED" | ||
echo | ||
|