diff --git a/.github/actions/component-test/action.yaml b/.github/actions/component-test/action.yaml index 1a306d5ee90b6..2d7737a038cca 100644 --- a/.github/actions/component-test/action.yaml +++ b/.github/actions/component-test/action.yaml @@ -77,39 +77,12 @@ runs: with: github-token: ${{ inputs.github-token }} script: | - var artifacts = await github.rest.actions.listWorkflowRunArtifacts({ - owner: context.repo.owner, - repo: context.repo.repo, - run_id: ${{ inputs.run-id }} - }); - console.log("########") - console.log(artifacts) - console.log(artifacts.data) - console.log(artifacts.data.artifacts) - for (int i = 0; i < 30 && artifacts.data.artifacts.length == 0; i++) { - console.log("No artifacts yet, let's try again") - await setTimeout(1000); - artifacts = await github.rest.actions.listWorkflowRunArtifacts({ - owner: context.repo.owner, - repo: context.repo.repo, - run_id: ${{ inputs.run-id }} - }); - console.log("########") - console.log(artifacts) - console.log(artifacts.data) - console.log(artifacts.data.artifacts) - } - **Result** :x: The tests failed please check the logs below: - - ` - for (const artifact in artifacts.data.artifacts) { - message += `* [*${artifact.name}*](${artifact.url}) - ` - } await github.rest.issues.updateComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: ${{ inputs.pr-id }}, comment_id: ${{ inputs.comment-id }}, - body: message + body: `${{ inputs.comment-body }} + + **Result** :x: The tests failed please [check the logs](https://github.com/apache/camel/actions/runs/${{ inputs.run-id }})` }); diff --git a/.github/actions/component-test/component-test.sh b/.github/actions/component-test/component-test.sh index 39c41e80a9691..eb79f13ca4fd1 100755 --- a/.github/actions/component-test/component-test.sh +++ b/.github/actions/component-test/component-test.sh @@ -45,10 +45,10 @@ function main() { if [[ ${fastBuild} = "true" ]] ; then echo "Launching a fast build against the projects ${pl} and their dependencies" - $mavenBinary -l $log -Pfastinstall installo -pl "$pl" -am + $mavenBinary -l $log -Pfastinstall install -pl "$pl" -am else echo "Launching tests of the projects ${pl}" - $mavenBinary -l $log installo -pl "$pl" + $mavenBinary -l $log install -pl "$pl" fi }