From 25148a8acba38b0d0d78e8f49fe9810321da061b Mon Sep 17 00:00:00 2001 From: Ankit Kala Date: Tue, 10 Sep 2024 21:16:59 +0530 Subject: [PATCH] Update Github action to use upload-artifact@v4 action Signed-off-by: Ankit Kala --- .github/workflows/build-and-test.yml | 2 +- .github/workflows/bwc.yml | 2 +- .github/workflows/security-knn-tests.yml | 4 ++-- .github/workflows/security-tests.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 125d13db..2e9be6fa 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -44,7 +44,7 @@ jobs: chown -R 1000:1000 `pwd` su `id -un 1000` -c 'whoami && java -version && ./gradlew --refresh-dependencies clean release -D"build.snapshot=true"' - name: Upload failed logs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: logs diff --git a/.github/workflows/bwc.yml b/.github/workflows/bwc.yml index 547edea0..764c11df 100644 --- a/.github/workflows/bwc.yml +++ b/.github/workflows/bwc.yml @@ -29,7 +29,7 @@ jobs: ./gradlew mixedClusterTask --stacktrace ./gradlew fullRestartClusterTask --stacktrace - name: Upload failed logs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: logs diff --git a/.github/workflows/security-knn-tests.yml b/.github/workflows/security-knn-tests.yml index c3259a50..7bc1c91e 100644 --- a/.github/workflows/security-knn-tests.yml +++ b/.github/workflows/security-knn-tests.yml @@ -78,7 +78,7 @@ jobs: ls -al src/test/resources/security/plugin su `id -un 1000` -c "whoami && java -version && ./gradlew --refresh-dependencies clean release -Dbuild.snapshot=true -Psecurity=true" - name: Upload failed logs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: logs @@ -122,7 +122,7 @@ jobs: chown -R 1000:1000 `pwd` su `id -un 1000` -c 'whoami && java -version && ./gradlew --refresh-dependencies clean release -Dbuild.snapshot=true -PnumNodes=1 -Dtests.class=org.opensearch.replication.BasicReplicationIT -Dtests.method="test knn index replication" -Pknn=true' - name: Upload failed logs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: logs diff --git a/.github/workflows/security-tests.yml b/.github/workflows/security-tests.yml index a1415749..6f92d761 100644 --- a/.github/workflows/security-tests.yml +++ b/.github/workflows/security-tests.yml @@ -27,7 +27,7 @@ jobs: ls -al src/test/resources/security/plugin ./gradlew clean release -Dbuild.snapshot=true -PnumNodes=1 -Psecurity=true - name: Upload failed logs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: logs