You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2026/09/13 22:08:51 UTC

(groovy) 01/02: minor refactor: echo more details for the EA CI build

This is an automated email from the ASF dual-hosted git repository.

paulk-asert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit c33f2f9479cb24afa63f3d39f5091183058f3091
Author: Paul King <pa...@asert.com.au>
AuthorDate: Mon Sep 14 08:00:56 2026 +1000

    minor refactor: echo more details for the EA CI build
---
 .github/workflows/groovy-build-test.yml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/.github/workflows/groovy-build-test.yml b/.github/workflows/groovy-build-test.yml
index 74ce2a1fe9..c1574555a1 100644
--- a/.github/workflows/groovy-build-test.yml
+++ b/.github/workflows/groovy-build-test.yml
@@ -429,6 +429,35 @@ jobs:
             echo "jdk-url=$url"
           } >> "$GITHUB_OUTPUT"
           echo "Ready: java-version=$version (${size} bytes)"
+
+          # Nothing in the repo records which build this job actually ran —
+          # only the major, via `jdk-page` in the matrix above. Surface the
+          # resolved build on the run page so it is visible without digging
+          # through step logs (which expire sooner than one may want to look
+          # back). `channel` is the signal that the canary has outlived its
+          # purpose: once jdk.java.net serves this major from /java/GA/, the
+          # job is testing a released JDK and the matrix should move to the
+          # next one.
+          lower_url="$(printf '%s' "$url" | tr 'A-Z' 'a-z')"
+          case "$lower_url" in
+            */java/ga/*) channel='GA (released — bump the canary to the next JDK)' ;;
+            */early_access/*|*/early-access/*) channel='early access' ;;
+            *) channel='unknown' ;;
+          esac
+          if [[ -n "${GITHUB_STEP_SUMMARY:-}" ]]; then
+            {
+              echo "### EA canary JDK: \`$version\`"
+              echo
+              echo '| | |'
+              echo '|---|---|'
+              echo "| page | $PAGE |"
+              echo "| java-version | \`$version\` |"
+              echo "| channel | $channel |"
+              echo "| tarball | \`${url##*/}\` |"
+              echo "| sha256 | \`$digest\` (verified) |"
+              echo "| url | $url |"
+            } >> "$GITHUB_STEP_SUMMARY"
+          fi
       - name: "📦 Upload jdk.java.net page on resolve failure"
         if: failure() && steps.openjdk.outcome == 'failure'
         uses: actions/upload-artifact@v7