stevedow99/dbt Cloud Cancel Running CI Job Runs Action

Checks if a dbt cloud CI job is running after a new/updated PR is made, cancels stale runs to kick of the new CI job run

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
dbt_cloud_tokendbt Cloud API tokenyes
dbt_cloud_account_iddbt Cloud account IDyes
dbt_cloud_job_iddbt Cloud Job IDyes
dbt_cloud_hostthe host url used for the dbt Cloud account, by default cloud.getdbt.com is usednocloud.getdbt.com
only_cancel_run_if_commit_is_using_pr_branchA flag that can be set to True or False. If set to true the action will only cancel runs that are based on the same prnofalse
github_pr_numberPR number - required if only_cancel_run_if_commit_is_using_pr_branch is set to trueno
max_runsmaximum number of recent runs to retrieveno10
only_cancel_queued_starting_runif set to true, this will only cancel runs in the state of Queued or Startingnofalse
cancel_runs_based_on_schema_overrideif this and `only_cancel_run_if_commit_is_using_pr_branch` are both set to true, the action will parse the PR number from existing dbt Cloud runs based on their `schema_override`, which is expected to follow the format `dbt_cloud_pr_{dbt_cloud_job_id}_{github_pr_number}` (matching dbt Cloud CI). nofalse
namedescription
cancelled_jobs_flagReturns True if a job or jobs was cancelled, False is no jobs were cancelled
cancelled_dbt_cloud_job_runsReturns the cancelled job run ids in a list e.g. ['12345', '56789']
cancelled_dbt_cloud_job_runs_markdownPre-Scripted markdown containing info on the cancelled jobs, can be used in PR comments