summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>2022-09-29 11:18:37 +0530
committerGitHub <noreply@github.com>2022-09-29 11:18:37 +0530
commita81231139e0c2289cedcb6bfa6abddc1ebb8ce5f (patch)
treee47b17da3bc5949525b42c493db87ec863005661
parent856d0e836374e998b99ece9f070bfbd397d9be0c (diff)
downloadfreertos-git-a81231139e0c2289cedcb6bfa6abddc1ebb8ce5f.tar.gz
Handle patch versions in versioning script (#850)
Update the release automation script so that it can correctly handle patch version numbers like "10.4.3-LTS-Patch-3". Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
-rwxr-xr-x.github/scripts/versioning.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/scripts/versioning.py b/.github/scripts/versioning.py
index 906925942..4c34ae72f 100755
--- a/.github/scripts/versioning.py
+++ b/.github/scripts/versioning.py
@@ -104,7 +104,7 @@ def extract_version_number_from_file(file_path):
match = re.search('\s*\*\s*(Amazon FreeRTOS.*V(.*))', content, re.MULTILINE)
# Is it a kernel file?
if match is None:
- match = re.search('\s*\*\s*(FreeRTOS Kernel.*V?([0-9]*\.[0-9]*\.[0-9]*|<DEVELOPMENT BRANCH>))', content, re.MULTILINE)
+ match = re.search('\s*\*\s*(FreeRTOS Kernel.*V?([0-9]*\.[0-9]*\.[0-9]*( LTS Patch \d*)?|<DEVELOPMENT BRANCH>))', content, re.MULTILINE)
if match is None:
match = re.search('\s*\*\s*(FreeRTOS V?([0-9]*\.[0-9]*|<DEVELOPMENT BRANCH>))', content, re.MULTILINE)
# Is it s FreeRTOS+TCP file?