From dd491affc1991b0ee6199df77504c83190106adb 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 ++-- 3 files changed, 4 insertions(+), 4 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 59e082c7..ed91c259 100644 --- a/.github/workflows/bwc.yml +++ b/.github/workflows/bwc.yml @@ -28,7 +28,7 @@ jobs: ./gradlew --refresh-dependencies clean release -Dbuild.snapshot=true -x test -x IntegTest ./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 a6b3fd9d..1807081e 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