Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/test-gh-actions' into test-gh-ac…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
gtroitsk committed Mar 7, 2024
2 parents 8992161 + ab7b38a commit 5d1d274
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/check-release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ jobs:
release_subversion=$(echo "$release" | cut -d"." -f3,3)
release_patch_version
release_stage_number=$(echo "$release" | cut -d"." -f4,4 | grep -o '[0-9]' || true)
echo $release_subversion
#
next_version=$(grep -E 'current-version:\s*' .github/project.yml | awk '{print $2}')
next_version_subversion=$(echo "$next_version" | cut -d"." -f3,3)
next_version_stage_number=$(echo "$next_version" | cut -d"." -f4,4 | grep -o '[0-9]' || true)
$next_version_subversion
$next_version_stage_number
if ! [[ $release =~ .*Final$ ]]; then
if [[ $next_version_subversion > $release_subversion ]]; then
echo "Error: you are bumping the FW sub version when the previous release was not Final"
Expand All @@ -34,4 +38,4 @@ jobs:
echo "Error: release sub versions should go in sequence"
exit 1;
fi
fi
fi

0 comments on commit 5d1d274

Please sign in to comment.