Skip to content

Commit 04cc40e

Browse files
committed
Replace deprecated ::set-output in the workflows
1 parent a63d5d6 commit 04cc40e

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
@@ -86,7 +86,7 @@ jobs:
8686
- name: Get year/month for cache key
8787
id: get-date
8888
run: |
89-
echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")"
89+
echo "yearmonth=$(/bin/date -u '+%Y-%m')" >> "$GITHUB_OUTPUT"
9090
shell: bash
9191
- name: Cache Gradle downloads
9292
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
@@ -128,7 +128,7 @@ jobs:
128128
- name: Get year/month for cache key
129129
id: get-date
130130
run: |
131-
echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")"
131+
echo "yearmonth=$(/bin/date -u '+%Y-%m')" >> "$GITHUB_OUTPUT"
132132
shell: bash
133133
- name: Cache Gradle downloads
134134
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
@@ -185,7 +185,7 @@ jobs:
185185
- name: Get year/month for cache key
186186
id: get-date
187187
run: |
188-
echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")"
188+
echo "yearmonth=$(/bin/date -u '+%Y-%m')" >> "$GITHUB_OUTPUT"
189189
shell: bash
190190

191191
- name: Generate cache key
@@ -246,7 +246,7 @@ jobs:
246246
check-latest: true
247247
- name: Export path to JDK ${{ matrix.java.name }}
248248
id: testjdk-exportpath
249-
run: echo "::set-output name=path::${JAVA_HOME}"
249+
run: echo "path=${JAVA_HOME}" >> $GITHUB_OUTPUT
250250
# Always use JDK 11 to build the main code: that's what we use for releases.
251251
- name: Set up JDK 11
252252
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
@@ -256,7 +256,7 @@ jobs:
256256
check-latest: true
257257
- name: Export path to JDK 11
258258
id: mainjdk-exportpath
259-
run: echo "::set-output name=path::${JAVA_HOME}"
259+
run: echo "path=${JAVA_HOME}" >> $GITHUB_OUTPUT
260260
- name: Display exact version of JDK ${{ matrix.java.name }}
261261
run: |
262262
${{ steps.testjdk-exportpath.outputs.path }}/bin/java -version

0 commit comments

Comments
 (0)