From d5785801f5e5bd0b104796a5390d905dd7bbcfb7 Mon Sep 17 00:00:00 2001 From: Brandon Shien <44730413+bshien@users.noreply.github.com> Date: Mon, 2 Dec 2024 18:44:22 -0800 Subject: [PATCH] Update artifact action to v4 (#686) * Update artifact action to v4 Signed-off-by: Brandon Shien * Add more Signed-off-by: Peter Zhu * Add more Signed-off-by: Peter Zhu --------- Signed-off-by: Brandon Shien Signed-off-by: Peter Zhu Co-authored-by: Peter Zhu --- .github/workflows/build.yml | 14 +++++++------- .github/workflows/dco-check.yml | 18 ------------------ .github/workflows/multi-node-test-workflow.yml | 2 +- .github/workflows/release-workflow.yml | 2 +- 4 files changed, 9 insertions(+), 27 deletions(-) delete mode 100644 .github/workflows/dco-check.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 57985c84..c7143d31 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,7 +74,7 @@ jobs: ./gradlew integTest -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" fi - name: Upload failed logs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: logs @@ -89,9 +89,9 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} # This step uses the upload-artifact Github action: https://github.com/actions/upload-artifact - name: Upload Artifacts - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: - name: asynchronous-search-plugin-ubuntu + name: asynchronous-search-plugin-ubuntu-${{ matrix.java }} path: asynchronous-search-artifacts windows-build: # Job name @@ -117,9 +117,9 @@ jobs: cp ./build/distributions/*.zip asynchronous-search-artifacts # This step uses the upload-artifact Github action: https://github.com/actions/upload-artifact - name: Upload Artifacts - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: - name: asynchronous-search-plugin-windows + name: asynchronous-search-plugin-windows-${{ matrix.java }} path: asynchronous-search-artifacts mac-os-build: # Job name @@ -145,7 +145,7 @@ jobs: cp ./build/distributions/*.zip asynchronous-search-artifacts # This step uses the upload-artifact Github action: https://github.com/actions/upload-artifact - name: Upload Artifacts - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: - name: asynchronous-search-plugin-mac + name: asynchronous-search-plugin-mac-${{ matrix.java }} path: asynchronous-search-artifacts diff --git a/.github/workflows/dco-check.yml b/.github/workflows/dco-check.yml deleted file mode 100644 index cf30ea89..00000000 --- a/.github/workflows/dco-check.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Developer Certificate of Origin Check - -on: [pull_request] - -jobs: - check: - runs-on: ubuntu-latest - - steps: - - name: Get PR Commits - id: 'get-pr-commits' - uses: tim-actions/get-pr-commits@v1.1.0 - with: - token: ${{ secrets.GITHUB_TOKEN }} - - name: DCO Check - uses: tim-actions/dco@v1.1.0 - with: - commits: ${{ steps.get-pr-commits.outputs.commits }} diff --git a/.github/workflows/multi-node-test-workflow.yml b/.github/workflows/multi-node-test-workflow.yml index 4cb107b2..4ec41114 100644 --- a/.github/workflows/multi-node-test-workflow.yml +++ b/.github/workflows/multi-node-test-workflow.yml @@ -33,7 +33,7 @@ jobs: echo "Running backwards compatibility tests ..." ./gradlew bwcTestSuite -Dtests.security.manager=false - name: Upload failed logs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: logs diff --git a/.github/workflows/release-workflow.yml b/.github/workflows/release-workflow.yml index 2747c3c4..63994c79 100644 --- a/.github/workflows/release-workflow.yml +++ b/.github/workflows/release-workflow.yml @@ -116,7 +116,7 @@ jobs: asset_content_type: application/zip - name: Upload Workflow Artifacts - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: asynchronous-search-plugin path: asynchronous-search-artifacts