Skip to main content

drt deploy github-actions

Scaffold a GitHub Actions workflow that runs this project's syncs.

Usage​

drt deploy github-actions [OPTIONS]

Options​

OptionTypeDefaultDescription
--schedule, -sTEXTCron schedule (UTC), e.g. "40 3 * * *". Omit for manual dispatch only.
--selectTEXT*Sync selector passed to drt-action.
--profile, -pTEXT``Profile name passed to drt-action (empty = project default).
--extrasTEXTOverride the inferred drt-core extras (comma-separated).
--with-planBOOLEANScaffold the review loop instead of a scheduled sync: a pull-request workflow that comments drt plan, and a merge workflow that runs drt apply on the plan that was reviewed.
--plan-outputPATH.github/workflows/drt-plan.ymlWith --with-plan: the plan workflow path.
--apply-outputPATH.github/workflows/drt-apply.ymlWith --with-plan: the apply workflow path.
--max-ageTEXT7dWith --with-plan: how old a reviewed plan may be when it is applied.
--redact-keysBOOLEANWith --with-plan: hash key values in the PR comment and the plan artifact.
--output, -oPATH.github/workflows/drt-sync.ymlWorkflow file path to write.
--dry-runBOOLEANPrint the workflow instead of writing it.
--forceBOOLEANOverwrite an existing workflow file.