diff --git a/.github/workflows/autoblocks-replays.yml b/.github/workflows/autoblocks-replays.yml index 12bb32cd..36f77fdf 100644 --- a/.github/workflows/autoblocks-replays.yml +++ b/.github/workflows/autoblocks-replays.yml @@ -12,6 +12,12 @@ on: # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule - cron: '27 12 * * *' +# Cancel in progress runs of this workflow when we push changes to the branch +# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: autoblocks-replays-js: runs-on: ubuntu-latest diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18f48095..ea1d35d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,12 @@ on: # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule - cron: '17 12 * * *' +# Cancel in progress runs of this workflow when we push changes to the branch +# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: pre-commit: runs-on: ubuntu-latest