Skip to content

Commit 3f47fa7

Browse files
authored
HDDS-14833. Bump GitHub action versions (#9916)
1 parent 9d431fd commit 3f47fa7

File tree

10 files changed

+60
-60
lines changed

10 files changed

+60
-60
lines changed

.github/workflows/build-ratis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,19 @@ jobs:
6565
thirdparty-version: ${{ steps.versions.outputs.thirdparty }}
6666
steps:
6767
- name: Checkout project
68-
uses: actions/checkout@v4
68+
uses: actions/checkout@v6
6969
with:
7070
repository: ${{ inputs.repo }}
7171
ref: ${{ inputs.ref }}
7272
- name: Cache for maven dependencies
73-
uses: actions/cache@v4
73+
uses: actions/cache@v5
7474
with:
7575
path: |
7676
~/.m2/repository
7777
!~/.m2/repository/org/apache/ratis
7878
key: ratis-dependencies-${{ hashFiles('**/pom.xml') }}
7979
- name: Setup java
80-
uses: actions/setup-java@v4
80+
uses: actions/setup-java@v5
8181
with:
8282
distribution: 'temurin'
8383
java-version: 8
@@ -95,7 +95,7 @@ jobs:
9595
mvn -B --no-transfer-progress -Dscan=false versions:set -DnewVersion=${{ steps.versions.outputs.ratis }}
9696
dev-support/checks/build.sh
9797
- name: Store Maven repo for tests
98-
uses: actions/upload-artifact@v4
98+
uses: actions/upload-artifact@v7
9999
with:
100100
name: ratis-jars
101101
path: |
@@ -112,7 +112,7 @@ jobs:
112112
protobuf-version: ${{ steps.versions.outputs.protobuf }}
113113
steps:
114114
- name: Checkout project
115-
uses: actions/checkout@v4
115+
uses: actions/checkout@v6
116116
with:
117117
repository: apache/ratis-thirdparty
118118
ref: ${{ needs.ratis.outputs.thirdparty-version }}

.github/workflows/check.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,14 @@ jobs:
146146
steps:
147147
- name: Checkout project
148148
if: ${{ !inputs.needs-ozone-source-tarball }}
149-
uses: actions/checkout@v4
149+
uses: actions/checkout@v6
150150
with:
151151
ref: ${{ inputs.sha }}
152152
fetch-depth: ${{ inputs.checkout-fetch-depth }}
153153

154154
- name: Download Ozone source tarball
155155
if: ${{ inputs.needs-ozone-source-tarball }}
156-
uses: actions/download-artifact@v4
156+
uses: actions/download-artifact@v8
157157
with:
158158
name: ozone-src
159159

@@ -164,7 +164,7 @@ jobs:
164164
165165
- name: Cache for NPM dependencies
166166
if: ${{ inputs.needs-npm-cache }}
167-
uses: actions/cache@v4
167+
uses: actions/cache@v5
168168
with:
169169
path: |
170170
~/.pnpm-store
@@ -174,7 +174,7 @@ jobs:
174174
175175
- name: Cache for Maven dependencies
176176
if: ${{ inputs.needs-maven-cache }}
177-
uses: actions/cache/restore@v4
177+
uses: actions/cache/restore@v5
178178
with:
179179
path: |
180180
~/.m2/repository/*/*/*
@@ -186,23 +186,23 @@ jobs:
186186
- name: Download Ozone repo
187187
id: download-ozone-repo
188188
if: ${{ inputs.needs-ozone-repo }}
189-
uses: actions/download-artifact@v4
189+
uses: actions/download-artifact@v8
190190
with:
191191
name: ozone-repo
192192
path: |
193193
~/.m2/repository/org/apache/ozone
194194
195195
- name: Download Ratis repo
196196
if: ${{ inputs.ratis-args != '' }}
197-
uses: actions/download-artifact@v4
197+
uses: actions/download-artifact@v8
198198
with:
199199
name: ratis-jars
200200
path: |
201201
~/.m2/repository/org/apache/ratis
202202
203203
- name: Download Ozone binary tarball
204204
if: ${{ inputs.needs-ozone-binary-tarball }}
205-
uses: actions/download-artifact@v4
205+
uses: actions/download-artifact@v8
206206
with:
207207
name: ozone-bin
208208

@@ -215,7 +215,7 @@ jobs:
215215
216216
- name: Setup java ${{ inputs.java-version }}
217217
if: ${{ inputs.java-version }}
218-
uses: actions/setup-java@v4
218+
uses: actions/setup-java@v5
219219
with:
220220
distribution: 'temurin'
221221
java-version: ${{ inputs.java-version }}
@@ -259,7 +259,7 @@ jobs:
259259
260260
- name: Archive build results
261261
if: ${{ !cancelled() }}
262-
uses: actions/upload-artifact@v4
262+
uses: actions/upload-artifact@v7
263263
with:
264264
name: ${{ (inputs.split && format('{0}-{1}', inputs.script, inputs.split)) || inputs.script }}
265265
# please keep path as a single item; move to that directory all files needed in the artifact
@@ -270,7 +270,7 @@ jobs:
270270
# to avoid the need for 3 more inputs.
271271
- name: Store binaries for tests
272272
if: ${{ inputs.script == 'build' && !cancelled() }}
273-
uses: actions/upload-artifact@v4
273+
uses: actions/upload-artifact@v7
274274
with:
275275
name: ozone-bin
276276
path: |
@@ -280,7 +280,7 @@ jobs:
280280

281281
- name: Store source tarball for compilation
282282
if: ${{ inputs.script == 'build' && !cancelled() }}
283-
uses: actions/upload-artifact@v4
283+
uses: actions/upload-artifact@v7
284284
with:
285285
name: ozone-src
286286
path: |
@@ -289,7 +289,7 @@ jobs:
289289

290290
- name: Store Maven repo for tests
291291
if: ${{ inputs.script == 'build' && !cancelled() }}
292-
uses: actions/upload-artifact@v4
292+
uses: actions/upload-artifact@v7
293293
with:
294294
name: ozone-repo
295295
path: |

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,19 @@ jobs:
5656
with-coverage: ${{ env.OZONE_WITH_COVERAGE }}
5757
steps:
5858
- name: "Checkout ${{ github.ref }} / ${{ github.sha }} (push)"
59-
uses: actions/checkout@v4
59+
uses: actions/checkout@v6
6060
with:
6161
persist-credentials: false
6262
if: github.event_name == 'push'
6363
- name: "Checkout ${{ github.sha }} with its parent (pull request)"
64-
uses: actions/checkout@v4
64+
uses: actions/checkout@v6
6565
with:
6666
ref: ${{ github.sha }}
6767
fetch-depth: 2
6868
persist-credentials: false
6969
if: github.event_name == 'pull_request'
7070
- name: "Checkout ${{ inputs.ref }} given in workflow input (manual dispatch)"
71-
uses: actions/checkout@v4
71+
uses: actions/checkout@v6
7272
with:
7373
ref: ${{ inputs.ref }}
7474
persist-credentials: false
@@ -333,12 +333,12 @@ jobs:
333333
- integration
334334
steps:
335335
- name: Checkout project
336-
uses: actions/checkout@v4
336+
uses: actions/checkout@v6
337337
with:
338338
fetch-depth: 0
339339
ref: ${{ needs.build-info.outputs.sha }}
340340
- name: Cache for maven dependencies
341-
uses: actions/cache/restore@v4
341+
uses: actions/cache/restore@v5
342342
with:
343343
path: |
344344
~/.m2/repository/*/*/*
@@ -347,15 +347,15 @@ jobs:
347347
restore-keys: |
348348
maven-repo-
349349
- name: Download artifacts
350-
uses: actions/download-artifact@v4
350+
uses: actions/download-artifact@v8
351351
with:
352352
path: target/artifacts
353353
- name: Untar binaries
354354
run: |
355355
mkdir -p hadoop-ozone/dist/target
356356
tar xzvf target/artifacts/ozone-bin/ozone*.tar.gz -C hadoop-ozone/dist/target
357357
- name: Setup java ${{ env.TEST_JAVA_VERSION }}
358-
uses: actions/setup-java@v4
358+
uses: actions/setup-java@v5
359359
with:
360360
distribution: 'temurin'
361361
java-version: ${{ env.TEST_JAVA_VERSION }}
@@ -369,7 +369,7 @@ jobs:
369369
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
370370
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
371371
- name: Archive build results
372-
uses: actions/upload-artifact@v4
372+
uses: actions/upload-artifact@v7
373373
with:
374374
name: coverage
375375
path: target/coverage

.github/workflows/generate-config-doc.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ jobs:
2626
runs-on: ubuntu-slim
2727
steps:
2828
- name: Checkout project
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v6
3030
with:
3131
ref: ${{ inputs.sha }}
3232

3333
- name: Set up Python
34-
uses: actions/setup-python@v4
34+
uses: actions/setup-python@v6
3535
with:
3636
python-version: '3.x'
3737

3838
- name: Download ozone-bin artifact
39-
uses: actions/download-artifact@v4
39+
uses: actions/download-artifact@v8
4040
with:
4141
name: ozone-bin
4242
path: ozone-bin
@@ -51,7 +51,7 @@ jobs:
5151
python3 dev-support/ci/xml_to_md.py ozone-bin/extracted Configurations.md
5252
5353
- name: Upload generated documentation
54-
uses: actions/upload-artifact@v4
54+
uses: actions/upload-artifact@v7
5555
with:
5656
name: config-documentation
5757
path: Configurations.md

.github/workflows/intermittent-test-check.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
outputs:
7878
matrix: ${{steps.generate.outputs.matrix}}
7979
steps:
80-
- uses: actions/checkout@v4
80+
- uses: actions/checkout@v6
8181
with:
8282
ref: ${{ github.event.inputs.ref }}
8383
- id: generate
@@ -105,11 +105,11 @@ jobs:
105105
timeout-minutes: 60
106106
steps:
107107
- name: Checkout project
108-
uses: actions/checkout@v4
108+
uses: actions/checkout@v6
109109
with:
110110
ref: ${{ github.event.inputs.ref }}
111111
- name: Cache for maven dependencies
112-
uses: actions/cache/restore@v4
112+
uses: actions/cache/restore@v5
113113
with:
114114
path: |
115115
~/.m2/repository/*/*/*
@@ -119,13 +119,13 @@ jobs:
119119
maven-repo-
120120
- name: Download Ratis repo
121121
if: ${{ github.event.inputs.ratis-ref != '' }}
122-
uses: actions/download-artifact@v4
122+
uses: actions/download-artifact@v8
123123
with:
124124
name: ratis-jars
125125
path: |
126126
~/.m2/repository/org/apache/ratis
127127
- name: Setup java
128-
uses: actions/setup-java@v4
128+
uses: actions/setup-java@v5
129129
with:
130130
distribution: 'temurin'
131131
java-version: ${{ github.event.inputs.java-version }}
@@ -144,7 +144,7 @@ jobs:
144144
145145
hadoop-ozone/dev-support/checks/build.sh $args
146146
- name: Store Maven repo for tests
147-
uses: actions/upload-artifact@v4
147+
uses: actions/upload-artifact@v7
148148
with:
149149
name: ozone-repo
150150
path: |
@@ -163,11 +163,11 @@ jobs:
163163
split: ${{fromJson(needs.prepare-job.outputs.matrix)}} # Define splits
164164
fail-fast: ${{ fromJson(github.event.inputs.fail-fast) }}
165165
steps:
166-
- uses: actions/checkout@v4
166+
- uses: actions/checkout@v6
167167
with:
168168
ref: ${{ github.event.inputs.ref }}
169169
- name: Cache for maven dependencies
170-
uses: actions/cache/restore@v4
170+
uses: actions/cache/restore@v5
171171
with:
172172
path: |
173173
~/.m2/repository/*/*/*
@@ -177,21 +177,21 @@ jobs:
177177
maven-repo-
178178
- name: Download Ratis repo
179179
if: ${{ github.event.inputs.ratis-ref != '' }}
180-
uses: actions/download-artifact@v4
180+
uses: actions/download-artifact@v8
181181
with:
182182
name: ratis-jars
183183
path: |
184184
~/.m2/repository/org/apache/ratis
185185
- name: Download Ozone repo
186186
id: download-ozone-repo
187-
uses: actions/download-artifact@v4
187+
uses: actions/download-artifact@v8
188188
with:
189189
name: ozone-repo
190190
path: |
191191
~/.m2/repository/org/apache/ozone
192192
continue-on-error: true
193193
- name: Setup java
194-
uses: actions/setup-java@v4
194+
uses: actions/setup-java@v5
195195
with:
196196
distribution: 'temurin'
197197
java-version: ${{ github.event.inputs.java-version }}
@@ -228,7 +228,7 @@ jobs:
228228
run: hadoop-ozone/dev-support/checks/_summary.sh target/unit/summary.txt
229229
if: ${{ !cancelled() }}
230230
- name: Archive build results
231-
uses: actions/upload-artifact@v4
231+
uses: actions/upload-artifact@v7
232232
if: ${{ failure() }}
233233
with:
234234
name: result-${{ github.run_number }}-${{ github.run_id }}-split-${{ matrix.split }}
@@ -239,7 +239,7 @@ jobs:
239239
runs-on: ubuntu-slim
240240
steps:
241241
- name: Download build results
242-
uses: actions/download-artifact@v4
242+
uses: actions/download-artifact@v8
243243
- name: Count failures
244244
run: |
245245
failures=$(find . -name 'summary.txt' | grep --text -v 'iteration' | xargs grep --text -v 'exit code: 0' | wc -l)

.github/workflows/label-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
fail-fast: false
3838
steps:
3939
- name: "Checkout project" # required for `gh` CLI
40-
uses: actions/checkout@v4
40+
uses: actions/checkout@v6
4141
with:
4242
persist-credentials: false
4343
sparse-checkout: |

.github/workflows/populate-cache.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ jobs:
3434
runs-on: ubuntu-24.04
3535
steps:
3636
- name: Checkout project
37-
uses: actions/checkout@v4
37+
uses: actions/checkout@v6
3838

3939
- name: Restore cache for Maven dependencies
4040
id: restore-cache
41-
uses: actions/cache/restore@v4
41+
uses: actions/cache/restore@v5
4242
with:
4343
path: |
4444
~/.m2/repository/*/*/*
@@ -47,7 +47,7 @@ jobs:
4747

4848
- name: Setup Java
4949
if: steps.restore-cache.outputs.cache-hit != 'true'
50-
uses: actions/setup-java@v4
50+
uses: actions/setup-java@v5
5151
with:
5252
distribution: 'temurin'
5353
java-version: 8
@@ -60,7 +60,7 @@ jobs:
6060
- name: Restore NodeJS tarballs
6161
id: restore-nodejs
6262
if: steps.restore-cache.outputs.cache-hit != 'true'
63-
uses: actions/cache@v4
63+
uses: actions/cache@v5
6464
with:
6565
path: ~/.m2/repository/com/github/eirslett/node
6666
key: nodejs-${{ steps.nodejs-version.outputs.nodejs-version }}
@@ -85,7 +85,7 @@ jobs:
8585

8686
- name: Save cache for Maven dependencies
8787
if: steps.restore-cache.outputs.cache-hit != 'true'
88-
uses: actions/cache/save@v4
88+
uses: actions/cache/save@v5
8989
with:
9090
path: |
9191
~/.m2/repository/*/*/*

0 commit comments

Comments
 (0)