Skip to content

Commit 741b44d

Browse files
committed
Update release.yml to update version number automatically.
1 parent 952391b commit 741b44d

112 files changed

Lines changed: 122 additions & 110 deletions

File tree

Some content is hidden

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

.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:

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

source/cellular_pkthandler.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_pktio.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/include/cellular_api.h

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)