Files

19 lines
674 B
Markdown

---
name: Phase Commit and Push
description: Commit, push, and verify CI after completing a phase task
version: "2.0"
trigger:
type: manual
---
When triggered manually after completing a phase:
1. Run `git add -A`
2. Ask the user for a commit message, suggesting format: `phase N: short description`
3. Run `git commit -m "{message}"`
4. Run `git push origin main`
5. Report the commit SHA and confirm push succeeded
6. Wait 30 seconds, then check CI status with `nix-shell -p gh --run "gh run list -L 1"`
7. If CI is still running, report that and suggest checking back later
8. If CI failed, run `nix-shell -p gh --run "gh run view --log-failed"` and report the error