Skip to content

feat(hotfix): add BKG save step to hotfix workflow [Sprint 2.5 D2] #33

@Piboonsak

Description

@Piboonsak

Sprint 2.5 — D2: BKG Save Step — Hotfix Workflow

Branch: feat/sprint-2.5-d2-bkg-hotfix
Base: main
Depends on: D1 ✅ (PR #32 merged — scripts/bkg-save.sh อยู่ใน main แล้ว)

Task

เพิ่ม BKG save step เข้า hotfix workflow โดย reuse scripts/bkg-save.sh จาก D1

Files to modify in Piboonsak/openclaw_github:

  1. .github/workflows/hotfix-deploy.yml (MODIFY)
    • Add BKG save step AFTER health check PASS step
    • Only run if health check succeeded (if: success())
    • Call existing scripts/bkg-save.sh via SSH on VPS (same pattern as deploy workflow)

Acceptance Criteria

  • AC-1: After successful hotfix deploy → BKG snapshot saved to /data/openclaw-config-archive/
  • Reuses scripts/bkg-save.sh from D1 (ห้ามสร้าง script ใหม่)
  • bkg-latest.json symlink updated after successful hotfix
  • BKG save only triggers after health check PASS (not on failure)

Reference Pattern (จาก D1 PR #32)

ดู step ที่เพิ่มใน deploy-openclaw-github-private-secrets.yml แล้วทำเหมือนกันใน hotfix-deploy.yml

Commit Message

feat(hotfix): add BKG save step to hotfix workflow (#202)

Labels

  • sprint-2.5
  • copilot

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions