diff --git a/.github/workflows/cuda.yml b/.github/workflows/cuda.yml index 50a3aa71d..946f54878 100644 --- a/.github/workflows/cuda.yml +++ b/.github/workflows/cuda.yml @@ -9,6 +9,11 @@ on: - master - release/* +# automatically cancel in-progress builds if another commit is pushed +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: github_actions: 'true' os_name: linux diff --git a/.github/workflows/python_package.yml b/.github/workflows/python_package.yml index edab12769..f046aecc1 100644 --- a/.github/workflows/python_package.yml +++ b/.github/workflows/python_package.yml @@ -9,6 +9,11 @@ on: - master - release/* +# automatically cancel in-progress builds if another commit is pushed +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: CONDA_ENV: test-env GITHUB_ACTIONS: 'true' diff --git a/.github/workflows/r_package.yml b/.github/workflows/r_package.yml index ae4e44da7..72d24eb9a 100644 --- a/.github/workflows/r_package.yml +++ b/.github/workflows/r_package.yml @@ -9,6 +9,11 @@ on: - master - release/* +# automatically cancel in-progress builds if another commit is pushed +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: # hack to get around this: # https://stat.ethz.ch/pipermail/r-package-devel/2020q3/005930.html diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index 0419e4783..415cbb660 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -11,6 +11,11 @@ on: - master - release/* +# automatically cancel in-progress builds if another commit is pushed +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: COMPILER: 'gcc' CONDA_ENV: test-env