From 98647f5c913163889ad43e61341b4d0bcd9b2fad Mon Sep 17 00:00:00 2001 From: Hailong Cui Date: Sat, 14 Sep 2024 09:55:11 +0800 Subject: [PATCH 1/2] upgrade upload-artifact to version 4 Signed-off-by: Hailong Cui --- .../workflows/notifications-test-and-build-workflow.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/notifications-test-and-build-workflow.yml b/.github/workflows/notifications-test-and-build-workflow.yml index 58440396..97cfdf2c 100644 --- a/.github/workflows/notifications-test-and-build-workflow.yml +++ b/.github/workflows/notifications-test-and-build-workflow.yml @@ -63,13 +63,13 @@ jobs: shell: bash - name: Upload Artifacts for notifications plugin - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: notifications-plugin-${{ matrix.os }} path: notifications-build/notifications - name: Upload Artifacts for notifications-core plugin - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: notifications-core-plugin-${{ matrix.os }} path: notifications-build/notifications-core @@ -129,13 +129,13 @@ jobs: shell: bash - name: Upload Artifacts for notifications plugin - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: notifications-plugin-${{ matrix.os }} path: notifications-build/notifications - name: Upload Artifacts for notifications-core plugin - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: notifications-core-plugin-${{ matrix.os }} path: notifications-build/notifications-core From b1469516f426c4e7b0137b4715185af322e7adf5 Mon Sep 17 00:00:00 2001 From: Hailong Cui Date: Sat, 14 Sep 2024 10:18:09 +0800 Subject: [PATCH 2/2] fix ci Signed-off-by: Hailong Cui --- .../notifications-test-and-build-workflow.yml | 11 +++++++---- .../security-notifications-test-workflow.yml | 3 +++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/notifications-test-and-build-workflow.yml b/.github/workflows/notifications-test-and-build-workflow.yml index 97cfdf2c..1c90d767 100644 --- a/.github/workflows/notifications-test-and-build-workflow.yml +++ b/.github/workflows/notifications-test-and-build-workflow.yml @@ -7,6 +7,9 @@ name: Test and Build Notifications on: [push, pull_request] +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: Get-CI-Image-Tag: uses: opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main @@ -65,13 +68,13 @@ jobs: - name: Upload Artifacts for notifications plugin uses: actions/upload-artifact@v4 with: - name: notifications-plugin-${{ matrix.os }} + name: notifications-plugin-${{ matrix.os }}-${{ matrix.java }} path: notifications-build/notifications - name: Upload Artifacts for notifications-core plugin uses: actions/upload-artifact@v4 with: - name: notifications-core-plugin-${{ matrix.os }} + name: notifications-core-plugin-${{ matrix.os }}-${{ matrix.java }} path: notifications-build/notifications-core build-windows-macos: @@ -131,11 +134,11 @@ jobs: - name: Upload Artifacts for notifications plugin uses: actions/upload-artifact@v4 with: - name: notifications-plugin-${{ matrix.os }} + name: notifications-plugin-${{ matrix.os }}-${{ matrix.java }} path: notifications-build/notifications - name: Upload Artifacts for notifications-core plugin uses: actions/upload-artifact@v4 with: - name: notifications-core-plugin-${{ matrix.os }} + name: notifications-core-plugin-${{ matrix.os }}-${{ matrix.java }} path: notifications-build/notifications-core diff --git a/.github/workflows/security-notifications-test-workflow.yml b/.github/workflows/security-notifications-test-workflow.yml index a36b07ca..ba0b6ea3 100644 --- a/.github/workflows/security-notifications-test-workflow.yml +++ b/.github/workflows/security-notifications-test-workflow.yml @@ -7,6 +7,9 @@ name: Security Test and Build Notifications on: [push, pull_request] +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: strategy: