github.disableWorkflow disables a workflow while leaving its YAML file unchanged.
automations/disable-github-workflow.automation.ts
{} after GitHub accepts the change. Requires Actions write permission.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Disable a GitHub Actions workflow without deleting its file.
github.disableWorkflow disables a workflow while leaving its YAML file unchanged.
import { automation } from "automate.ax"
import { github } from "automate.ax/github"
export default automation("Disable legacy workflow", () => {
github.disableWorkflow({
owner: "SentsCo",
repository: "automate.ax",
workflowId: 123456,
})
})
{} after GitHub accepts the change. Requires Actions write permission.