23 lines
689 B
Bash
23 lines
689 B
Bash
|
|
#!/bin/bash
|
||
|
|
# sync_push.sh — 자동 push + 시그널 갱신 일괄 실행
|
||
|
|
#
|
||
|
|
# C20-1-A 자동 push 정책 이행 표준 절차:
|
||
|
|
# git push origin main → sync_signal.sh update (로컬 IPC 시그널 갱신)
|
||
|
|
#
|
||
|
|
# PM은 업무 완료 시 본 스크립트 1회 실행으로 push·시그널 갱신 동시 수행.
|
||
|
|
|
||
|
|
cd "$(dirname "$0")/.." 2>/dev/null
|
||
|
|
|
||
|
|
BRANCH="${1:-main}"
|
||
|
|
|
||
|
|
echo "▶️ git push origin $BRANCH"
|
||
|
|
if git push origin "$BRANCH" 2>&1 | tail -3; then
|
||
|
|
echo "✅ push 완료"
|
||
|
|
else
|
||
|
|
echo "❌ push 실패 — 시그널 갱신 건너뜀"
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
|
||
|
|
bash scripts/sync_signal.sh update
|
||
|
|
echo "📡 시그널 갱신 완료 — 다른 세션이 다음 프롬프트에서 즉시 감지"
|