diff --git a/.github/workflows/code-checker.yaml b/.github/workflows/code-checker.yaml index 1637baf8a4c35..7546028a54b81 100644 --- a/.github/workflows/code-checker.yaml +++ b/.github/workflows/code-checker.yaml @@ -29,7 +29,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: ubuntu: diff --git a/.github/workflows/mac.yaml b/.github/workflows/mac.yaml index 28332eec17104..9c104c090920d 100644 --- a/.github/workflows/mac.yaml +++ b/.github/workflows/mac.yaml @@ -26,7 +26,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: mac: diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 09015fee321a6..7935e68dacd8d 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -37,7 +37,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: Build: diff --git a/.github/workflows/publish-builder.yaml b/.github/workflows/publish-builder.yaml index ea4f9306a8642..d72319793e95e 100644 --- a/.github/workflows/publish-builder.yaml +++ b/.github/workflows/publish-builder.yaml @@ -18,7 +18,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: publish-builder: diff --git a/.github/workflows/publish-gpu-builder.yaml b/.github/workflows/publish-gpu-builder.yaml index 3f552b1bb5e17..27b3cd8fe3077 100644 --- a/.github/workflows/publish-gpu-builder.yaml +++ b/.github/workflows/publish-gpu-builder.yaml @@ -18,7 +18,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: publish-gpu-builder: diff --git a/.github/workflows/publish-krte-images.yaml b/.github/workflows/publish-krte-images.yaml index 4fe3e6af7c24f..a9579dfaec3a7 100644 --- a/.github/workflows/publish-krte-images.yaml +++ b/.github/workflows/publish-krte-images.yaml @@ -19,7 +19,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: publish-krte-images: diff --git a/.github/workflows/publish-test-images.yaml b/.github/workflows/publish-test-images.yaml index df8614821ae1a..5587389d63f42 100644 --- a/.github/workflows/publish-test-images.yaml +++ b/.github/workflows/publish-test-images.yaml @@ -20,7 +20,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: publish-pytest-images: