dbt-cloud-action icon indicating copy to clipboard operation
dbt-cloud-action copied to clipboard

Handle cancelling dbt Cloud jobs

Open b-per opened this issue 1 year ago • 0 comments

Solves #20

Adding logic to cancel the job that was triggered if the action is still running when we cancel it.

It can be useful when workflow_dispatch is used, but also especially when people trigger CI jobs using this action.

With the additional config

on:
  - pull_request

concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true
...

we can actually trigger dbt Cloud CI jobs from the action and if we push more commits to the PR, it will trigger a new CI job and cancel the previous one.

b-per avatar Sep 25 '24 08:09 b-per