Skip to content

Commit

Permalink
[Backport 2.15] [Backport 2.x] Bump download and upload-artifact to v3 (
Browse files Browse the repository at this point in the history
  • Loading branch information
opensearch-trigger-bot[bot] authored Sep 17, 2024
1 parent 295bd1c commit dd3dbfb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- 17
- 21
# Job name
name: Build Asynchronous Search
name: Linux - Build Asynchronous Search
# This job runs on Linux.
outputs:
build-test-linux: ${{ steps.step-build-test-linux.outputs.build-test-linux }}
Expand All @@ -35,6 +35,9 @@ jobs:
# need to switch to root so that github actions can install runner binary on container without permission issues.
options: --user root

env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK ${{ matrix.java }}
Expand Down Expand Up @@ -132,15 +135,15 @@ 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@v3
if: failure()
with:
name: logs
path: build/testclusters/integTest-*/logs/*

windows-build:
# Job name
name: Build Asynchronous Search
name: Windows - Build Asynchronous Search
# This job runs on Windows.
runs-on: windows-latest
steps:
Expand All @@ -162,14 +165,14 @@ 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@v3
with:
name: asynchronous-search-plugin-windows
path: asynchronous-search-artifacts

mac-os-build:
# Job name
name: Build Asynchronous Search
name: MacOS - Build Asynchronous Search
# This job runs on Mac OS.
runs-on: macos-latest
steps:
Expand All @@ -191,7 +194,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@v3
with:
name: asynchronous-search-plugin-mac
path: asynchronous-search-artifacts
5 changes: 4 additions & 1 deletion .github/workflows/multi-node-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
# need to switch to root so that github actions can install runner binary on container without permission issues.
options: --user root

env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK 11
Expand All @@ -49,7 +52,7 @@ jobs:
chown -R 1000:1000 `pwd`
su `id -un 1000` -c "./gradlew bwcTestSuite -Dtests.security.manager=false"
- name: Upload failed logs
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
name: logs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
asset_content_type: application/zip

- name: Upload Workflow Artifacts
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: asynchronous-search-plugin
path: asynchronous-search-artifacts
Expand Down

0 comments on commit dd3dbfb

Please sign in to comment.