diff --git a/.github/workflows/auto_pr_creation_target_repo_caller.yml b/.github/workflows/auto_pr_creation_target_repo_caller.yml new file mode 100644 index 00000000..cb8a6038 --- /dev/null +++ b/.github/workflows/auto_pr_creation_target_repo_caller.yml @@ -0,0 +1,25 @@ +name: Auto PR Creation Caller + +on: + pull_request: + types: [closed] + branches: + - test_develop + +jobs: + debug_check: + runs-on: ubuntu-latest + steps: + - run: echo "Triggered" + + call_auto_pr_workflow: + #secrets: + #RDKCM_RDKE: ${{ secrets.RDKCM_RDKE }} + uses: rdkcentral/build_tools_workflows/.github/workflows/auto_pr_creation_meta.yml@RDKEMW-4778 + secrets: + RDKCM_RDKE: ${{ secrets.RDKCM_RDKE }} + #runs-on: ubuntu-latest + #steps: + # - name: Print placeholder instead of actual logic + # run: echo "This is a placeholder for the actual logic." + diff --git a/.github/workflows/component-release.yml b/.github/workflows/component-release.yml new file mode 100644 index 00000000..f98dd18c --- /dev/null +++ b/.github/workflows/component-release.yml @@ -0,0 +1,73 @@ +name: Component Release + +on: + push: + branches: + - develop + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Git + run: | + git config --global user.name "GitHub Actions" + git config --global user.email "actions@github.com" + - name: Install git-flow and auto-changelog + run: | + sudo apt-get update + sudo apt-get install -y git-flow + npm install -g auto-changelog + - name: Clone the project and start release + run: | + set -e + git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} project + cd project + git fetch --all + git checkout main || git checkout -b main origin/main + git checkout develop || git checkout -b develop origin/develop + git flow init -f -d -p feature/ -b bugfix/ -r release/ -x hotfix/ -s support/ -t "" + # Extract the latest version from CHANGELOG.md and increment patch + LATEST_VERSION=$(grep -m 1 -oP '^#### \[\K[^\]]+' CHANGELOG.md) + if [[ -z "$LATEST_VERSION" ]]; then + echo "No version found in CHANGELOG.md!" + exit 1 + fi + IFS='.' read -r major minor patch <<< "$LATEST_VERSION" + if [[ -z "$major" || -z "$minor" || -z "$patch" ]]; then + echo "Invalid version format in CHANGELOG.md: $LATEST_VERSION" + exit 1 + fi + NEXT_PATCH=$((patch + 1)) + RELEASE_VERSION="$major.$minor.$NEXT_PATCH" + echo "LATEST_VERSION=$LATEST_VERSION" + echo "RELEASE_VERSION=$RELEASE_VERSION" + echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV + # Check if tag already exists + if git rev-parse "refs/tags/$RELEASE_VERSION" >/dev/null 2>&1; then + echo "Tag $RELEASE_VERSION already exists. Skipping release." + exit 0 + fi + git flow release start $RELEASE_VERSION + auto-changelog -v $RELEASE_VERSION + git add CHANGELOG.md + git commit -m "$RELEASE_VERSION release changelog updates" + git flow release publish + - name: Finish release and push (default git-flow messages) + run: | + set -e + cd project + git flow release finish -m "$RELEASE_VERSION release" $RELEASE_VERSION + git push origin main + git push origin --tags + git push origin develop + - name: Cleanup tag if workflow fails + if: failure() + run: | + cd project + git tag -d $RELEASE_VERSION || true + git push origin :refs/tags/$RELEASE_VERSION || true diff --git a/AVInput/AVInput.cpp b/AVInput/AVInput.cpp index c7586702..f1637ae4 100644 --- a/AVInput/AVInput.cpp +++ b/AVInput/AVInput.cpp @@ -16,7 +16,7 @@ * See the License for the specific language governing permissions and * limitations under the License. **/ - +//Test4 #include "AVInput.h" #include "dsMgr.h" #include "hdmiIn.hpp" diff --git a/AVInput/AVInput.h b/AVInput/AVInput.h index b6c86142..42eabf0a 100644 --- a/AVInput/AVInput.h +++ b/AVInput/AVInput.h @@ -16,7 +16,7 @@ * See the License for the specific language governing permissions and * limitations under the License. **/ - +//Test7 #pragma once #include "Module.h" diff --git a/HdcpProfile/HdcpProfile.cpp b/HdcpProfile/HdcpProfile.cpp index bcfa8f63..ea090a97 100644 --- a/HdcpProfile/HdcpProfile.cpp +++ b/HdcpProfile/HdcpProfile.cpp @@ -173,3 +173,5 @@ namespace WPEFramework } } // namespace Plugin } // namespace WPEFramework + +