From 947d5256376293c87c6bfcbdb35eb866360f3cd6 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Fri, 6 Sep 2024 14:02:27 -0700 Subject: [PATCH] Update the actions/upload-artifact from v1 to v4 (#2133) (#2134) (cherry picked from commit 61328a93f7627ea197b9337a5b7f947c8c1972c2) Signed-off-by: Ryan Liang Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- .../dashboards-observability-test-and-build-workflow.yml | 4 ++-- .github/workflows/ftr-e2e-dashboards-observability-test.yml | 4 ++-- .github/workflows/integration-tests-workflow.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dashboards-observability-test-and-build-workflow.yml b/.github/workflows/dashboards-observability-test-and-build-workflow.yml index 387a886afc..7d998c011f 100644 --- a/.github/workflows/dashboards-observability-test-and-build-workflow.yml +++ b/.github/workflows/dashboards-observability-test-and-build-workflow.yml @@ -71,7 +71,7 @@ jobs: whoami && yarn build && mv ./build/*.zip ./build/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}.zip" - name: Upload Artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: dashboards-observability-${{ matrix.os }} path: ./OpenSearch-Dashboards/plugins/dashboards-observability/build @@ -139,7 +139,7 @@ jobs: mv ./build/*.zip ./build/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}.zip - name: Upload Artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: dashboards-observability-${{ matrix.os }} path: ./OpenSearch-Dashboards/plugins/dashboards-observability/build diff --git a/.github/workflows/ftr-e2e-dashboards-observability-test.yml b/.github/workflows/ftr-e2e-dashboards-observability-test.yml index 0ded4961dc..3c30a95bad 100644 --- a/.github/workflows/ftr-e2e-dashboards-observability-test.yml +++ b/.github/workflows/ftr-e2e-dashboards-observability-test.yml @@ -174,14 +174,14 @@ jobs: working-directory: opensearch-dashboards-functional-test - name: Capture failure screenshots - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 if: failure() with: name: cypress-screenshots-${{ matrix.os }} path: opensearch-dashboards-functional-test/cypress/screenshots - name: Capture failure test video - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 if: failure() with: name: cypress-videos-${{ matrix.os }} diff --git a/.github/workflows/integration-tests-workflow.yml b/.github/workflows/integration-tests-workflow.yml index 8135de14b4..d975d81edb 100644 --- a/.github/workflows/integration-tests-workflow.yml +++ b/.github/workflows/integration-tests-workflow.yml @@ -189,14 +189,14 @@ jobs: yarn cypress:run --headless --spec '.cypress/integration/${{ matrix.testgroups }}/*' - name: Capture failure screenshots - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 if: failure() with: name: cypress-screenshots-${{ matrix.os }} path: OpenSearch-Dashboards/plugins/dashboards-observability/.cypress/screenshots - name: Capture test video - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 if: always() with: name: cypress-videos-${{ matrix.os }}