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