From b580aef4dc0bb01b0c41fb11042ea3bca93603ec Mon Sep 17 00:00:00 2001 From: "sammy.huang" Date: Thu, 11 Jan 2024 10:00:51 +0800 Subject: [PATCH] enhance: [skip e2e]We aim to cancel the previously initiated job exclusively during PR (#29859) PR: https://github.com/milvus-io/milvus/pull/29797 enhance: We aim to cancel the previously initiated job or workflow exclusively during the Pull Request (PR) stage Signed-off-by: Sammy Huang --- .github/workflows/code-checker.yaml | 2 +- .github/workflows/mac.yaml | 2 +- .github/workflows/main.yaml | 2 +- .github/workflows/publish-builder.yaml | 2 +- .github/workflows/publish-gpu-builder.yaml | 2 +- .github/workflows/publish-krte-images.yaml | 2 +- .github/workflows/publish-test-images.yaml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) 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: