Skip to content

Commit 443738f

Browse files
authored
Upgrade to upload-artifact v4 (#1739) (#1740)
* Upgrade to upload-artifact v4 Signed-off-by: Craig Perkins <[email protected]> * Upgrade actions/checkout to v4 Signed-off-by: Craig Perkins <[email protected]> * Add run-start-commands Signed-off-by: Craig Perkins <[email protected]> * Set overwrite to true Signed-off-by: Craig Perkins <[email protected]> * Only run with jdk 21 Signed-off-by: Craig Perkins <[email protected]> --------- Signed-off-by: Craig Perkins <[email protected]> (cherry picked from commit 3747b56)
1 parent 933b7cf commit 443738f

File tree

5 files changed

+20
-16
lines changed

5 files changed

+20
-16
lines changed

.github/workflows/bwc-test-workflow.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ jobs:
2929
# this image tag is subject to change as more dependencies and updates will arrive over time
3030
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
3131
# need to switch to root so that github actions can install runner binary on container without permission issues.
32-
options: --user root
32+
options: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }}
3333

3434
steps:
35+
- name: Run start commands
36+
run: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }}
3537
# This step uses the checkout Github action: https://github.com/actions/checkout
3638
- name: Checkout Branch
37-
uses: actions/checkout@v2
39+
uses: actions/checkout@v4
3840
# This step uses the setup-java Github action: https://github.com/actions/setup-java
3941
- name: Set Up JDK ${{ matrix.java }}
4042
uses: actions/setup-java@v1

.github/workflows/maven-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
distribution: temurin # Temurin is a distribution of adoptium
2929
java-version: ${{ matrix.jdk }}
30-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
3131
- uses: aws-actions/configure-aws-credentials@v1
3232
with:
3333
role-to-assume: ${{ secrets.PUBLISH_SNAPSHOTS_ROLE }}

.github/workflows/multi-node-test-workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
push:
88
branches:
99
- "*"
10-
env:
11-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
1210

1311
jobs:
1412
Get-CI-Image-Tag:
@@ -30,17 +28,19 @@ jobs:
3028
# this image tag is subject to change as more dependencies and updates will arrive over time
3129
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
3230
# need to switch to root so that github actions can install runner binary on container without permission issues.
33-
options: --user root
31+
ooptions: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }}
3432

3533
steps:
34+
- name: Run start commands
35+
run: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }}
3636
# This step uses the setup-java Github action: https://github.com/actions/setup-java
3737
- name: Set Up JDK ${{ matrix.java }}
3838
uses: actions/setup-java@v1
3939
with:
4040
java-version: ${{ matrix.java }}
4141
# This step uses the checkout Github action: https://github.com/actions/checkout
4242
- name: Checkout Branch
43-
uses: actions/checkout@v2
43+
uses: actions/checkout@v4
4444
- name: Run integration tests with multi node config
4545
run: |
4646
chown -R 1000:1000 `pwd`

.github/workflows/security-test-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
java-version: ${{ matrix.java }}
2626
# This step uses the checkout Github action: https://github.com/actions/checkout
2727
- name: Checkout Branch
28-
uses: actions/checkout@v2
28+
uses: actions/checkout@v4
2929
# This step uses the setup-java Github action: https://github.com/actions/setup-java
3030
- name: Set Up JDK ${{ matrix.java }}
3131
uses: actions/setup-java@v1

.github/workflows/test-workflow.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
push:
88
branches:
99
- "*"
10-
env:
11-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
1210

1311
jobs:
1412
Get-CI-Image-Tag:
@@ -33,12 +31,14 @@ jobs:
3331
# this image tag is subject to change as more dependencies and updates will arrive over time
3432
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
3533
# need to switch to root so that github actions can install runner binary on container without permission issues.
36-
options: --user root
34+
options: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }}
3735

3836
steps:
37+
- name: Run start commands
38+
run: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }}
3939
# This step uses the checkout Github action: https://github.com/actions/checkout
4040
- name: Checkout Branch
41-
uses: actions/checkout@v2
41+
uses: actions/checkout@v4
4242
# This step uses the setup-java Github action: https://github.com/actions/setup-java
4343
- name: Set Up JDK ${{ matrix.java }}
4444
uses: actions/setup-java@v1
@@ -54,15 +54,16 @@ jobs:
5454
cp ./alerting/build/distributions/*.zip alerting-artifacts
5555
# This step uses the codecov-action Github action: https://github.com/codecov/codecov-action
5656
- name: Upload Coverage Report
57-
uses: codecov/codecov-action@v1
57+
uses: codecov/codecov-action@v4
5858
with:
5959
token: ${{ secrets.CODECOV_TOKEN }}
6060
# This step uses the upload-artifact Github action: https://github.com/actions/upload-artifact
6161
- name: Upload Artifacts
62-
uses: actions/upload-artifact@v3
62+
uses: actions/upload-artifact@v4
6363
with:
6464
name: alerting-plugin-${{ matrix.os }}
6565
path: alerting-artifacts
66+
overwrite: true
6667

6768
build:
6869
needs: Get-CI-Image-Tag
@@ -85,7 +86,7 @@ jobs:
8586
steps:
8687
# This step uses the checkout Github action: https://github.com/actions/checkout
8788
- name: Checkout Branch
88-
uses: actions/checkout@v2
89+
uses: actions/checkout@v4
8990
# This is a hack, but this step creates a link to the X: mounted drive, which makes the path
9091
# short enough to work on Windows
9192
- name: Shorten Path
@@ -107,7 +108,8 @@ jobs:
107108
cp ./alerting/build/distributions/*.zip alerting-artifacts
108109
# This step uses the upload-artifact Github action: https://github.com/actions/upload-artifact
109110
- name: Upload Artifacts
110-
uses: actions/upload-artifact@v3
111+
uses: actions/upload-artifact@v4
111112
with:
112113
name: alerting-plugin-${{ matrix.os }}
113114
path: alerting-artifacts
115+
overwrite: true

0 commit comments

Comments
 (0)