Kaynağa Gözat

ci: render manager link as markdown with readable note

TheWildJames 3 hafta önce
ebeveyn
işleme
9717a474f3
2 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 1 1
      .github/config/RELEASE_NOTES.md
  2. 3 3
      .github/workflows/main.yml

+ 1 - 1
.github/config/RELEASE_NOTES.md

@@ -25,7 +25,7 @@ A kernel-based root solution for Android devices.
 > [!WARNING]
 > This release uses the [pershoot/KernelSU-Next](https://github.com/pershoot/KernelSU-Next) fork. The fork maintainer has said it is not ready for production use, so treat it as use at your own risk.
 
-Manager: {{KSU_MANAGER}} {{KSU_MANAGER_NOTE}}
+**Manager:** [build-manager run]({{KSU_MANAGER}}) — {{KSU_MANAGER_NOTE}}
 
 > [!IMPORTANT]
 > For best compatiblity ensure your Manager Version and Kernel Version match eg. 30100 = 30100.

+ 3 - 3
.github/workflows/main.yml

@@ -841,7 +841,7 @@ jobs:
         MANAGER_RUN_ID=$(curl -fsSL --retry 5 --retry-delay 5 --retry-all-errors "https://api.github.com/repos/KernelSU-Next/KernelSU-Next/actions/workflows/build-manager-ci.yml/runs?head_sha=${STOCK_COMMIT}" | jq -r '.workflow_runs[0].id // empty')
         if [[ -n "${MANAGER_RUN_ID:-}" ]]; then
           KSU_MANAGER="https://github.com/KernelSU-Next/KernelSU-Next/actions/runs/${MANAGER_RUN_ID}"
-          KSU_MANAGER_NOTE="exact build for initialized commit ${STOCK_COMMIT:0:12}"
+          KSU_MANAGER_NOTE="built from stock dev commit ${STOCK_COMMIT:0:12} (exact match)"
         else
           # No run indexed for the stock commit (e.g. official dev was force-pushed/rebase).
           # Fall back to the build-manager run for the CURRENT official dev tip so the
@@ -850,10 +850,10 @@ jobs:
           MANAGER_RUN_ID=$(curl -fsSL --retry 5 --retry-delay 5 --retry-all-errors "https://api.github.com/repos/KernelSU-Next/KernelSU-Next/actions/workflows/build-manager-ci.yml/runs?branch=dev" | jq -r '.workflow_runs[0].id // empty')
           if [[ -n "${MANAGER_RUN_ID:-}" ]]; then
             KSU_MANAGER="https://github.com/KernelSU-Next/KernelSU-Next/actions/runs/${MANAGER_RUN_ID}"
-            KSU_MANAGER_NOTE="latest official dev branch build-manager run (fallback)"
+            KSU_MANAGER_NOTE="built from the latest official dev branch (fallback, commit may differ)"
           else
             KSU_MANAGER="https://github.com/KernelSU-Next/KernelSU-Next/actions/workflows/build-manager-ci.yml"
-            KSU_MANAGER_NOTE="no manager run found"
+            KSU_MANAGER_NOTE="no manager build found"
           fi
         fi