Agentes rodam o mesmo escopo affected que o CI de feature antes do push; documenta PR Ready/auto-merge e pula build Vercel em branches agent/*.
18 lines
515 B
Bash
Executable file
18 lines
515 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Vercel "Ignored Build Step": exit 0 = skip deployment, exit 1 = build.
|
|
# Agent feature branches must not queue preview builds (Hobby = 1 concurrent build).
|
|
# stage/main always build (stage preview + prod).
|
|
set -euo pipefail
|
|
|
|
ref="${VERCEL_GIT_COMMIT_REF:-}"
|
|
|
|
if [ "$ref" = "main" ] || [ "$ref" = "stage" ]; then
|
|
exit 1
|
|
fi
|
|
|
|
if [[ "$ref" == agent/* ]] || [[ "$ref" == cursor/* ]]; then
|
|
echo "skip: agent/cursor branch ($ref) — merge gate is GitHub Actions, not Vercel"
|
|
exit 0
|
|
fi
|
|
|
|
exit 1
|