|
|
@@ -841,8 +841,20 @@ 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}"
|
|
|
else
|
|
|
- KSU_MANAGER="https://github.com/KernelSU-Next/KernelSU-Next/actions/workflows/build-manager-ci.yml"
|
|
|
+ # 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
|
|
|
+ # release still gets a real manager build to link to.
|
|
|
+ echo "No manager run found for stock commit ${STOCK_COMMIT}; falling back to latest dev tip." >&2
|
|
|
+ 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)"
|
|
|
+ else
|
|
|
+ KSU_MANAGER="https://github.com/KernelSU-Next/KernelSU-Next/actions/workflows/build-manager-ci.yml"
|
|
|
+ KSU_MANAGER_NOTE="no manager run found"
|
|
|
+ fi
|
|
|
fi
|
|
|
|
|
|
echo "Commits count: $COMMITS_COUNT"
|
|
|
@@ -857,6 +869,7 @@ jobs:
|
|
|
echo "KSU_VERSION=$KSU_VERSION" >> $GITHUB_ENV
|
|
|
echo "KSU_GIT_TAG=$KSU_GIT_TAG" >> $GITHUB_ENV
|
|
|
echo "KSU_MANAGER=$KSU_MANAGER" >> $GITHUB_ENV
|
|
|
+ echo "KSU_MANAGER_NOTE=${KSU_MANAGER_NOTE:-}" >> $GITHUB_ENV
|
|
|
|
|
|
- name: Set release body
|
|
|
run: |
|