kenn-io--agentsview
f99010fae1
CI / lint (push) Failing after 1s
CI / frontend (push) Failing after 1s
CI / scripts (push) Failing after 1s
CI / Go Test (ubuntu-latest) (push) Failing after 0s
CI / frontend-node-25 (push) Failing after 1s
CI / docs (push) Failing after 0s
CI / coverage (push) Failing after 0s
CI / e2e (push) Failing after 0s
Docker / build-and-push (push) Failing after 1s
CI / integration (push) Failing after 4m43s
CI / Go Test (windows-latest) (push) Has been cancelled
CI / Desktop Unit Tests (Windows) (push) Has been cancelled
Desktop Artifacts / Desktop Build (Linux (arm64)) (push) Has been cancelled
Desktop Artifacts / Desktop Build (Linux) (push) Has been cancelled
Desktop Artifacts / Desktop Build (Windows) (push) Has been cancelled
Desktop Artifacts (macOS) / Desktop Build (macOS (aarch64)) (push) Has been cancelled
Desktop Artifacts (macOS) / Desktop Build (macOS (x86_64)) (push) Has been cancelled
32 行
947 B
Bash
可执行文件
32 行
947 B
Bash
可执行文件
#!/bin/bash
|
|
# Derive desktop release health inputs from the GitHub event payload.
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
event_name="${GITHUB_EVENT_NAME:-}"
|
|
event_path="${GITHUB_EVENT_PATH:-}"
|
|
|
|
if [ -z "$event_path" ] || [ ! -f "$event_path" ]; then
|
|
echo "::error::GITHUB_EVENT_PATH is not set or does not exist" >&2
|
|
exit 1
|
|
fi
|
|
|
|
case "$event_name" in
|
|
workflow_dispatch)
|
|
tag="$(jq -r '.inputs.tag // ""' "$event_path")"
|
|
conclusion="success"
|
|
;;
|
|
workflow_run)
|
|
tag="$(jq -r '.workflow_run.head_branch // ""' "$event_path")"
|
|
conclusion="$(jq -r '.workflow_run.conclusion // ""' "$event_path")"
|
|
;;
|
|
*)
|
|
echo "::error::unsupported event for desktop release health: ${event_name:-<empty>}" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
DESKTOP_RELEASE_HEALTH_WORKFLOW_CONCLUSION="$conclusion" \
|
|
"$SCRIPT_DIR/check_desktop_release_health.sh" "$tag"
|