scripts/ci/report.sh
Metadata
- Purpose: Automation script used in local development, CI, or deployment flow.
- Domain:
scripts - Language:
bash - Bytes: 427
- Lines: 22
- Content hash (short):
5ad7547f - Source (start): scripts/ci/report.sh:1
- Source (end): scripts/ci/report.sh:22
Indexed Symbols
No indexed functions/methods detected in this file.
Markdown Headings (if applicable)
No markdown headings detected.
Source Preview
#!/usr/bin/env bash
set -euo pipefail
OUT=${1:-build-report.json}
SKU=""
if [[ -f version.txt ]]; then
SKU=$(tr -d '[:space:]' < version.txt)
fi
cat > "${OUT}" <<JSON
{
"project": "anchor-msp",
"git_sha": "${GITHUB_SHA:-local}",
"sku": "${SKU}",
"timestamp": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
"run_url": "${GITHUB_SERVER_URL:-}/${GITHUB_REPOSITORY:-}/actions/runs/${GITHUB_RUN_ID:-}"
}
JSON
echo "Wrote ${OUT}"