From 94a325f3d6c7167fb485097ca7614123f4c55184 Mon Sep 17 00:00:00 2001 From: marko-bekhta Date: Tue, 2 Dec 2025 23:06:11 +0100 Subject: [PATCH] Replace deprecated ::set-output in the workflows --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a54c3922b..3c8e8d8fe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,7 +89,7 @@ jobs: - name: Get year/month for cache key id: get-date run: | - echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")" + echo "yearmonth=$(/bin/date -u '+%Y-%m')" >> "$GITHUB_OUTPUT" shell: bash - name: Cache Gradle downloads uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 @@ -138,7 +138,7 @@ jobs: - name: Get year/month for cache key id: get-date run: | - echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")" + echo "yearmonth=$(/bin/date -u '+%Y-%m')" >> "$GITHUB_OUTPUT" shell: bash - name: Cache Gradle downloads uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 @@ -202,7 +202,7 @@ jobs: - name: Get year/month for cache key id: get-date run: | - echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")" + echo "yearmonth=$(/bin/date -u '+%Y-%m')" >> "$GITHUB_OUTPUT" shell: bash - name: Generate cache key @@ -263,7 +263,7 @@ jobs: check-latest: true - name: Export path to JDK ${{ matrix.java.name }} id: testjdk-exportpath - run: echo "::set-output name=path::${JAVA_HOME}" + run: echo "path=${JAVA_HOME}" >> $GITHUB_OUTPUT - name: Set up JDK 11 if: ${{ startsWith( inputs.branch, 'wip/2' ) }} uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 @@ -280,7 +280,7 @@ jobs: check-latest: true - name: Export path to JDK 11 id: mainjdk-exportpath - run: echo "::set-output name=path::${JAVA_HOME}" + run: echo "path=${JAVA_HOME}" >> $GITHUB_OUTPUT - name: Display exact version of JDK ${{ matrix.java.name }} run: | ${{ steps.testjdk-exportpath.outputs.path }}/bin/java -version