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

tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git


The following commit(s) were added to refs/heads/main by this push:
     new 0b8ad78df4c NO-ISSUE: Differentiate artifacts being uploaded on CI 
builds depending on the partition (#2285)
0b8ad78df4c is described below

commit 0b8ad78df4c54a97922e73a811cd07593c2d9771
Author: Tiago Bento <[email protected]>
AuthorDate: Thu May 2 22:55:14 2024 -0400

    NO-ISSUE: Differentiate artifacts being uploaded on CI builds depending on 
the partition (#2285)
---
 .../actions/upload-ci-reports-and-artifacts/action.yml    | 15 +++++++--------
 .github/workflows/ci_build.yml                            |  2 ++
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/.github/actions/upload-ci-reports-and-artifacts/action.yml 
b/.github/actions/upload-ci-reports-and-artifacts/action.yml
index 359d842968b..1f587d543ac 100644
--- a/.github/actions/upload-ci-reports-and-artifacts/action.yml
+++ b/.github/actions/upload-ci-reports-and-artifacts/action.yml
@@ -2,10 +2,9 @@ name: "Upload CI reports and artifacts"
 description: ""
 
 inputs:
-  working_dir:
-    description: "Dir path of kie-tools"
-    required: false
-    default: "."
+  partition_index:
+    description: "Index of the partition whose artifacts are being uploaded."
+    required: true
 
 runs:
   using: "composite"
@@ -44,7 +43,7 @@ runs:
       uses: actions/upload-artifact@v3
       if: always()
       with:
-        name: ${{ runner.os }}__tests-reports
+        name: ${{ runner.os }}_${{ inputs.partition_index }}__tests-reports
         path: |
           ${{ runner.temp }}/tests-reports.zip
 
@@ -52,7 +51,7 @@ runs:
       uses: actions/upload-artifact@v3
       if: always()
       with:
-        name: ${{ runner.os }}__end-to-end-tests-reports
+        name: ${{ runner.os }}_${{ inputs.partition_index 
}}__end-to-end-tests-reports
         path: |
           ${{ runner.temp }}/end-to-end-tests-reports.zip
 
@@ -60,7 +59,7 @@ runs:
       uses: actions/upload-artifact@v3
       if: always()
       with:
-        name: ${{ runner.os }}__end-to-end-tests-artifacts
+        name: ${{ runner.os }}_${{ inputs.partition_index 
}}__end-to-end-tests-artifacts
         path: |
           ${{ runner.temp }}/end-to-end-tests-artifacts.zip
 
@@ -68,6 +67,6 @@ runs:
       uses: actions/upload-artifact@v3
       if: always()
       with:
-        name: ${{ runner.os }}__build-artifacts
+        name: ${{ runner.os }}_${{ inputs.partition_index }}__build-artifacts
         path: |
           ${{ runner.temp }}/build-artifacts.zip
diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml
index b35d8a42b78..212d5fae118 100644
--- a/.github/workflows/ci_build.yml
+++ b/.github/workflows/ci_build.yml
@@ -169,6 +169,8 @@ jobs:
       - name: "Upload reports and artifacts"
         if: always() && !cancelled() && steps.setup_build_mode.outputs.mode != 
'none'
         uses: ./.github/actions/upload-ci-reports-and-artifacts
+        with:
+          partition_index: ${{ matrix.partition }}
 
       - name: "Upload end-to-end tests results to Buildkite (`main` only)"
         if: always() && !cancelled() && steps.setup_build_mode.outputs.mode != 
'none' && !github.event.pull_request


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to