Skip to main content
github.deleteWorkflowFile deletes a YAML workflow file directly under .github/workflows/.
automations/delete-github-workflow.automation.ts
Provide a .yml or .yaml path directly under .github/workflows/, the current blob sha, and commitMessage. Optional branch defaults to the default branch; author and committer accept { name, email }. Returns commit.sha and content: null. The action requires both Contents and Workflows write permissions.