Skip to content

Commit 6a95b50

Browse files
authored
Merge pull request #179 from rdkcentral/topic/RDKEMW-4778
RDKEMW-4778: test_develop
2 parents 375a96e + 46d26e9 commit 6a95b50

File tree

4 files changed

+100
-2
lines changed

4 files changed

+100
-2
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Auto PR Creation Caller
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
branches:
7+
- test_develop
8+
9+
jobs:
10+
debug_check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- run: echo "Triggered"
14+
15+
call_auto_pr_workflow:
16+
#secrets:
17+
#RDKCM_RDKE: ${{ secrets.RDKCM_RDKE }}
18+
uses: rdkcentral/build_tools_workflows/.github/workflows/auto_pr_creation_meta.yml@RDKEMW-4778
19+
secrets:
20+
RDKCM_RDKE: ${{ secrets.RDKCM_RDKE }}
21+
#runs-on: ubuntu-latest
22+
#steps:
23+
# - name: Print placeholder instead of actual logic
24+
# run: echo "This is a placeholder for the actual logic."
25+
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Component Release
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Git
17+
run: |
18+
git config --global user.name "GitHub Actions"
19+
git config --global user.email "[email protected]"
20+
- name: Install git-flow and auto-changelog
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y git-flow
24+
npm install -g auto-changelog
25+
- name: Clone the project and start release
26+
run: |
27+
set -e
28+
git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} project
29+
cd project
30+
git fetch --all
31+
git checkout main || git checkout -b main origin/main
32+
git checkout develop || git checkout -b develop origin/develop
33+
git flow init -f -d -p feature/ -b bugfix/ -r release/ -x hotfix/ -s support/ -t ""
34+
# Extract the latest version from CHANGELOG.md and increment patch
35+
LATEST_VERSION=$(grep -m 1 -oP '^#### \[\K[^\]]+' CHANGELOG.md)
36+
if [[ -z "$LATEST_VERSION" ]]; then
37+
echo "No version found in CHANGELOG.md!"
38+
exit 1
39+
fi
40+
IFS='.' read -r major minor patch <<< "$LATEST_VERSION"
41+
if [[ -z "$major" || -z "$minor" || -z "$patch" ]]; then
42+
echo "Invalid version format in CHANGELOG.md: $LATEST_VERSION"
43+
exit 1
44+
fi
45+
NEXT_PATCH=$((patch + 1))
46+
RELEASE_VERSION="$major.$minor.$NEXT_PATCH"
47+
echo "LATEST_VERSION=$LATEST_VERSION"
48+
echo "RELEASE_VERSION=$RELEASE_VERSION"
49+
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
50+
# Check if tag already exists
51+
if git rev-parse "refs/tags/$RELEASE_VERSION" >/dev/null 2>&1; then
52+
echo "Tag $RELEASE_VERSION already exists. Skipping release."
53+
exit 0
54+
fi
55+
git flow release start $RELEASE_VERSION
56+
auto-changelog -v $RELEASE_VERSION
57+
git add CHANGELOG.md
58+
git commit -m "$RELEASE_VERSION release changelog updates"
59+
git flow release publish
60+
- name: Finish release and push (default git-flow messages)
61+
run: |
62+
set -e
63+
cd project
64+
git flow release finish -m "$RELEASE_VERSION release" $RELEASE_VERSION
65+
git push origin main
66+
git push origin --tags
67+
git push origin develop
68+
- name: Cleanup tag if workflow fails
69+
if: failure()
70+
run: |
71+
cd project
72+
git tag -d $RELEASE_VERSION || true
73+
git push origin :refs/tags/$RELEASE_VERSION || true

AVInput/AVInput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
**/
19-
19+
//Test3
2020
#include "AVInput.h"
2121
#include "dsMgr.h"
2222
#include "hdmiIn.hpp"

AVInput/AVInput.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
**/
19-
19+
//Test7
2020
#pragma once
2121

2222
#include "Module.h"

0 commit comments

Comments
 (0)