diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 1e95ec2..af1ef78 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -8,3 +8,9 @@ on: jobs: Black: uses: steinwurf/black-action/.github/workflows/action.yml@2.0.0 + +# Cancel previous in-progress when pushing: https://stackoverflow.com/a/72408109 +concurrency: +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true