-
Notifications
You must be signed in to change notification settings - Fork 1
CMFSUPPORT-2426 Add auto_pr_creation support for rdke manifests #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c583aa4
CMFSUPPORT-2426 Add auto_pr_creation_rdke_manifest yml file
scthunderbolt c2650e4
CMFSUPPORT-2426 Add submanifest support in auto_pr_generation_manifes…
scthunderbolt 164c4bd
Add more logging
scthunderbolt 21e2ba0
Use feature/CMFSUPPORT-2426 branch for auto_pr_generation_manifest sc…
scthunderbolt e4e7f84
Use project in submanifest instead of name
scthunderbolt fe3781e
Revert "Use feature/CMFSUPPORT-2426 branch for auto_pr_generation_man…
scthunderbolt 30180ce
Fix name of auto_pr_creation_rdke_manifest yml file
scthunderbolt 35e777c
Merge branch 'develop' into feature/CMFSUPPORT-2426
scthunderbolt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| name: Update Manifests on Sub-manifest Repo Merge | ||
|
|
||
| on: | ||
| workflow_call: | ||
| secrets: | ||
| RDKCM_RDKE: | ||
| required: true | ||
|
|
||
| jobs: | ||
| auto_pr_creation_rdke_manifest: | ||
| runs-on: ubuntu-latest | ||
| if: github.event.pull_request.merged == true | ||
| steps: | ||
| - name: Checkout build_tools_workflows code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: rdkcentral/build_tools_workflows | ||
| path: 'tools' | ||
| ref: develop | ||
| token: ${{ secrets.RDKCM_RDKE }} | ||
|
|
||
| - name: Checkout Manifest Repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: 'rdkcentral/middleware-manifest-rdke' | ||
| path: 'manifest_repo' | ||
| ref: develop | ||
| token: ${{ secrets.RDKCM_RDKE }} | ||
|
|
||
| - name: Update Git Config | ||
| env: | ||
| BOT_EMAIL: ${{ vars.RDKM_BOT_EMAIL }} | ||
| run: | | ||
| cd manifest_repo | ||
| git config user.name "bot" | ||
| git config user.email "$BOT_EMAIL" | ||
| cd .. | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.x' | ||
|
|
||
| - name: Install Python dependencies | ||
| run: | | ||
| python3 -m pip install --upgrade pip | ||
| pip install requests PyGithub GitPython | ||
|
|
||
| - name: Run the update script | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.RDKCM_RDKE }} | ||
| GITHUB_ORG: 'rdkcentral' | ||
| MANIFEST_REPO_PATH: ${{ github.workspace }}/manifest_repo | ||
| MANIFEST_REPO_NAME: 'rdkcentral/middleware-manifest-rdke' | ||
| PR_NUMBER: ${{ github.event.pull_request.number }} | ||
| BASE_BRANCH: ${{ github.event.pull_request.base.ref }} | ||
| run: | | ||
| cd manifest_repo | ||
| python3 ../tools/build_health_check_workflow_scripts/auto_pr_generation_manifest.py | ||
| cd .. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logging format for submanifests uses 'project' attribute while the logging for projects uses 'name' attribute. For consistency, consider using the same attribute name or making it clear in the log message which attribute is being displayed. The submanifest element's primary identifier appears to be 'project', so the logging is accurate, but it differs from the pattern used for projects.