Skip to content

Resume an interrupted apply

When an --apply fails partway through — a gpg signing error, a network blip, a gh aw failure — gh-aw-fleet preserves the scratch clone instead of deleting it. You can point a re-run at that clone with --work-dir to continue from where it stopped rather than starting over.

Failed applies leave their clone at:

/tmp/gh-aw-fleet-<owner>-<repo>-<timestamp>/

These directories are breadcrumbs — do not delete them while you are still recovering.

Pass the clone to the same command with --work-dir. This skips git clone, the auto-cleanup, and (when the clone is already prepared) the earlier pipeline stages:

Terminal window
gh-aw-fleet deploy <owner>/<repo> --apply --work-dir /tmp/gh-aw-fleet-<owner>-<repo>-<timestamp>

The same flag works for sync and upgrade.

deploy --apply --work-dir inspects the clone and resumes at the right gate:

  • Staged workflow changes, no commit yet → resumes at the commit gate, skipping clone, gh aw init, and gh aw add.
  • You committed by hand (e.g. after a gpg failure) but did not push → the tool detects the unpushed commit and resumes at the push gate, going straight to git push and gh pr create.

An --apply that surfaced findings pauses for an interactive confirmation. When resuming non-interactively, add --yes to proceed past that prompt (the findings still print on stderr and land in the PR body):

Terminal window
gh-aw-fleet deploy <owner>/<repo> --apply --work-dir <clone> --yes