Skip to content

Commit 5c4aeb7

Browse files
committed
Replace deprecated ::set-output in the workflows
1 parent 2d70d6f commit 5c4aeb7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
- name: Get year/month for cache key
9090
id: get-date
9191
run: |
92-
echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")"
92+
echo "yearmonth=$(/bin/date -u '+%Y-%m')" >> "$GITHUB_OUTPUT"
9393
shell: bash
9494
- name: Cache Gradle downloads
9595
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
@@ -138,7 +138,7 @@ jobs:
138138
- name: Get year/month for cache key
139139
id: get-date
140140
run: |
141-
echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")"
141+
echo "yearmonth=$(/bin/date -u '+%Y-%m')" >> "$GITHUB_OUTPUT"
142142
shell: bash
143143
- name: Cache Gradle downloads
144144
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
@@ -204,7 +204,7 @@ jobs:
204204
- name: Get year/month for cache key
205205
id: get-date
206206
run: |
207-
echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")"
207+
echo "yearmonth=$(/bin/date -u '+%Y-%m')" >> "$GITHUB_OUTPUT"
208208
shell: bash
209209

210210
- name: Generate cache key
@@ -265,7 +265,7 @@ jobs:
265265
check-latest: true
266266
- name: Export path to JDK ${{ matrix.java.name }}
267267
id: testjdk-exportpath
268-
run: echo "::set-output name=path::${JAVA_HOME}"
268+
run: echo "path=${JAVA_HOME}" >> $GITHUB_OUTPUT
269269
- name: Set up JDK 11
270270
if: ${{ startsWith( inputs.branch, 'wip/2' ) }}
271271
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
@@ -282,7 +282,7 @@ jobs:
282282
check-latest: true
283283
- name: Export path to JDK 11
284284
id: mainjdk-exportpath
285-
run: echo "::set-output name=path::${JAVA_HOME}"
285+
run: echo "path=${JAVA_HOME}" >> $GITHUB_OUTPUT
286286
- name: Display exact version of JDK ${{ matrix.java.name }}
287287
run: |
288288
${{ steps.testjdk-exportpath.outputs.path }}/bin/java -version

0 commit comments

Comments
 (0)