diff --git a/.github/workflows/archery.yml b/.github/workflows/archery.yml index e82281f425e..eda2d2d1e37 100644 --- a/.github/workflows/archery.yml +++ b/.github/workflows/archery.yml @@ -44,7 +44,7 @@ env: concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: contents: read diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 45a9c3ba774..de94d999c42 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -60,7 +60,7 @@ on: concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: contents: read diff --git a/.github/workflows/cpp_extra.yml b/.github/workflows/cpp_extra.yml index 612175e60f6..7336f2d0dee 100644 --- a/.github/workflows/cpp_extra.yml +++ b/.github/workflows/cpp_extra.yml @@ -72,7 +72,7 @@ on: concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: contents: read diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index b763cfbbbca..9ae04e18e6f 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -29,7 +29,7 @@ on: concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: contents: read diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 2ef7f1ca788..03447ec1b42 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -46,7 +46,7 @@ on: concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: contents: read diff --git a/.github/workflows/matlab.yml b/.github/workflows/matlab.yml index 8485e62b6f5..323f648278b 100644 --- a/.github/workflows/matlab.yml +++ b/.github/workflows/matlab.yml @@ -38,7 +38,7 @@ on: concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: contents: read diff --git a/.github/workflows/package_linux.yml b/.github/workflows/package_linux.yml index 20950e28882..da248545e94 100644 --- a/.github/workflows/package_linux.yml +++ b/.github/workflows/package_linux.yml @@ -58,7 +58,7 @@ on: concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: # Upload to GitHub Release diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index e5d367958dd..58542fec250 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -42,7 +42,7 @@ on: concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: contents: read diff --git a/.github/workflows/r.yml b/.github/workflows/r.yml index 38bccb1f4de..2c06e4549ef 100644 --- a/.github/workflows/r.yml +++ b/.github/workflows/r.yml @@ -52,7 +52,7 @@ on: concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: contents: read diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 1e91f624878..8b1ddfe2ef6 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -56,7 +56,7 @@ on: concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: contents: read