Skip to content

Commit c291099

Browse files
authored
Update version number by release flow (#187)
* Update release.yml to update version number automatically. * Update version in manifest.yml and config.doxyfile. * Update change log.
1 parent 00188a7 commit c291099

File tree

116 files changed

+136
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+136
-112
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ jobs:
3030
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
3131
COMMIT_ID: ${{ github.event.inputs.commit_id }}
3232
run: git checkout -b "$VERSION_NUMBER" "$COMMIT_ID"
33+
- name: Update version number in source files
34+
env:
35+
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
36+
source_folder_list: "source test"
37+
run: |
38+
echo "${{ env.source_folder_list }}" | \
39+
xargs -n 1 sh -c \
40+
'find $0 -type f \( -name "*.c" -o -name "*.h" \) \
41+
-exec sed -i -b -E "0,/^ \* FreeRTOS-Cellular-Interface/s/^ \* FreeRTOS-Cellular-Interface.*/ \* FreeRTOS-Cellular-Interface $VERSION_NUMBER/g" {} +'
42+
git add .
43+
git commit -m '[AUTO][RELEASE]: Update version number in source files'
44+
git push -u origin "$VERSION_NUMBER"
3345
- name: Generate SBOM
3446
uses: FreeRTOS/CI-CD-Github-Actions/sbom-generator@main
3547
with:

.gitmodules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[submodule "test/unit-test/CMock"]
22
path = test/unit-test/CMock
33
url = https://github.com/ThrowTheSwitch/CMock
4+
update = none

CHANGELOG.md

Lines changed: 11 additions & 0 deletions

docs/doxygen/config.doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ PROJECT_NAME = "FreeRTOS: FreeRTOS Cellular Library"
4848
# could be handy for archiving the generated documentation or if some version
4949
# control system is used.
5050

51-
PROJECT_NUMBER = v1.4.0
51+
PROJECT_NUMBER = v1.4.1
5252

5353
# Using the PROJECT_BRIEF tag one can provide an optional one line description
5454
# for a project that appears at the top of each page and should give viewer a

manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name : "FreeRTOS-Cellular-Interface"
2-
version: "v1.4.0"
2+
version: "v1.4.1+"
33
description: |
44
"FreeRTOS Cellular Interface implementation of the 3GPP TS v27.007 standard..\n"
55
license: "MIT"

source/cellular_3gpp_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FreeRTOS-Cellular-Interface v1.4.0
2+
* FreeRTOS-Cellular-Interface <DEVELOPMENT BRANCH>
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* SPDX-License-Identifier: MIT

source/cellular_3gpp_urc_handler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FreeRTOS-Cellular-Interface v1.4.0
2+
* FreeRTOS-Cellular-Interface <DEVELOPMENT BRANCH>
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* SPDX-License-Identifier: MIT

source/cellular_at_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FreeRTOS-Cellular-Interface v1.4.0
2+
* FreeRTOS-Cellular-Interface <DEVELOPMENT BRANCH>
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* SPDX-License-Identifier: MIT

source/cellular_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FreeRTOS-Cellular-Interface v1.4.0
2+
* FreeRTOS-Cellular-Interface <DEVELOPMENT BRANCH>
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* SPDX-License-Identifier: MIT

source/cellular_common_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FreeRTOS-Cellular-Interface v1.4.0
2+
* FreeRTOS-Cellular-Interface <DEVELOPMENT BRANCH>
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* SPDX-License-Identifier: MIT

0 commit comments

Comments
 (0)