This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch ci/fix-component-test-compat
in repository https://gitbox.apache.org/repos/asf/camel.git

commit c2a16c612b4955d373729f5067976c341ff4c75b
Author: Guillaume Nodet <[email protected]>
AuthorDate: Tue Mar 10 12:14:01 2026 +0100

    chore(ci): fix /component-test backward compatibility with older PR branches
    
    The workflow runs from main but the component-test action is loaded from
    the PR branch checkout. Old PR branches still have the action.yaml that
    requires comment-id as input. Pass comment-id from the workflow and keep
    it as an optional input in the action for backward compatibility.
---
 .github/actions/component-test/action.yaml     | 4 ++++
 .github/workflows/pr-manual-component-test.yml | 1 +
 2 files changed, 5 insertions(+)

diff --git a/.github/actions/component-test/action.yaml 
b/.github/actions/component-test/action.yaml
index 6845c3ca6115..d522b7c6d17a 100644
--- a/.github/actions/component-test/action.yaml
+++ b/.github/actions/component-test/action.yaml
@@ -24,6 +24,10 @@ inputs:
   pr-id:
     description: 'Id of the pull request to update'
     required: true
+  comment-id:
+    description: 'Id of the comment (unused, kept for backward compatibility 
with older PR branches)'
+    required: false
+    default: ''
   comment-body:
     description: 'Body of the comment to process'
     required: true
diff --git a/.github/workflows/pr-manual-component-test.yml 
b/.github/workflows/pr-manual-component-test.yml
index 8e36010858f0..84a916379629 100644
--- a/.github/workflows/pr-manual-component-test.yml
+++ b/.github/workflows/pr-manual-component-test.yml
@@ -87,6 +87,7 @@ jobs:
         with:
           run-id: ${{ github.run_id }}
           pr-id: ${{ github.event.issue.number }}
+          comment-id: ${{ github.event.comment.id }}
           comment-body: ${{ env.comment_body }}
           artifact-upload-suffix: java-${{ matrix.java }}
       - name: Post failure comment

Reply via email to