github.onCheckRunSucceeded starts an automation for a completed check run with conclusion "success".
automations/github-check-run-succeeded.automation.ts
check_run.conclusion: "success". Requires Checks read permission.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Start an automation when a GitHub check run succeeds.
github.onCheckRunSucceeded starts an automation for a completed check run with conclusion "success".
import { automation } from "automate.ax"
import { github } from "automate.ax/github"
export default automation("GitHub check passed", () => {
const event = github.onCheckRunSucceeded()
github.createCommitStatus({
owner: event.repository.owner.login,
repository: event.repository.name,
sha: event.check_run.head_sha,
state: "success",
})
})
check_run.conclusion: "success". Requires Checks read permission.