This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 52d9612c89f0 chore(ci): fix /component-test backward compat with older
PR branches
52d9612c89f0 is described below
commit 52d9612c89f092e815581060f687d64a9d3b0bbc
Author: Guillaume Nodet <[email protected]>
AuthorDate: Tue Mar 10 12:14:20 2026 +0100
chore(ci): fix /component-test backward compat 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