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

nfilotto pushed a commit to branch camel-4.1.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.1.x by this push:
     new cef5f0b0005 (chore) ci: convert component-test parameters to env vars 
(#11879)
cef5f0b0005 is described below

commit cef5f0b0005b84f755249650f22dcec4f13bd48c
Author: Nicolas Filotto <essob...@users.noreply.github.com>
AuthorDate: Tue Oct 31 19:10:50 2023 +0100

    (chore) ci: convert component-test parameters to env vars (#11879)
---
 .github/actions/component-test/action.yaml       | 14 ++++++++++++--
 .github/actions/component-test/component-test.sh |  8 ++++----
 2 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/.github/actions/component-test/action.yaml 
b/.github/actions/component-test/action.yaml
index 2d7737a038c..0f63f351a30 100644
--- a/.github/actions/component-test/action.yaml
+++ b/.github/actions/component-test/action.yaml
@@ -40,7 +40,12 @@ runs:
       uses: ./.github/actions/install-mvnd
     - name: maven build
       shell: bash
-      run: ${{ github.action_path }}/component-test.sh ${{ 
steps.install-mvnd.outputs.mvnd-dir }}/mvnd "${{ inputs.comment-body }}" true 
build.log
+      run: ${{ github.action_path }}/component-test.sh
+      env:
+        MAVEN_BINARY: ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd
+        COMMENT_BODY: ${{ inputs.comment-body }}
+        FAST_BUILD: "true"
+        LOG_FILE: build.log
     - name: archive logs
       uses: actions/upload-artifact@v3
       if: always()
@@ -49,7 +54,12 @@ runs:
         path: build.log
     - name: maven test
       shell: bash
-      run: ${{ github.action_path }}/component-test.sh ${{ 
steps.install-mvnd.outputs.mvnd-dir }}/mvnd "${{ inputs.comment-body }}" false 
tests.log
+      run: ${{ github.action_path }}/component-test.sh
+      env:
+        MAVEN_BINARY: ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd
+        COMMENT_BODY: ${{ inputs.comment-body }}
+        FAST_BUILD: "false"
+        LOG_FILE: build.log
     - name: archive logs
       uses: actions/upload-artifact@v3
       if: always()
diff --git a/.github/actions/component-test/component-test.sh 
b/.github/actions/component-test/component-test.sh
index 68efe60e73a..948f451fea2 100755
--- a/.github/actions/component-test/component-test.sh
+++ b/.github/actions/component-test/component-test.sh
@@ -18,10 +18,10 @@
 echo "Using MVND_OPTS=$MVND_OPTS"
 
 function main() {
-  local mavenBinary=${1}
-  local commentBody=${2}
-  local fastBuild=${3}
-  local log=${4}
+  local mavenBinary=$MAVEN_BINARY
+  local commentBody=$COMMENT_BODY
+  local fastBuild=$FAST_BUILD
+  local log=$LOG_FILE
 
   if [[ ${commentBody} = /component-test* ]] ; then
     local componentList="${commentBody:16}"

Reply via email to