diff --git a/.github/workflows/behave-cloudberry.yml b/.github/workflows/behave-cloudberry.yml index e7b0ec3fc50..d203281a7f5 100644 --- a/.github/workflows/behave-cloudberry.yml +++ b/.github/workflows/behave-cloudberry.yml @@ -81,8 +81,8 @@ on: type: string concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: false + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || format('run-{0}', github.run_id) }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: contents: read diff --git a/.github/workflows/build-cloudberry.yml b/.github/workflows/build-cloudberry.yml index 976db9378fc..31816ad34d8 100644 --- a/.github/workflows/build-cloudberry.yml +++ b/.github/workflows/build-cloudberry.yml @@ -107,7 +107,7 @@ on: branches: [main, REL_2_STABLE] pull_request: branches: [main, REL_2_STABLE] - types: [opened, synchronize, reopened, edited] + types: [opened, synchronize, reopened] workflow_dispatch: inputs: rocky_version: @@ -127,8 +127,8 @@ on: type: string concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: false + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || format('run-{0}', github.run_id) }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} # Note: Step details, logs, and artifacts require users to be logged into GitHub # even for public repositories. This is a GitHub security feature and cannot diff --git a/.github/workflows/build-dbg-cloudberry.yml b/.github/workflows/build-dbg-cloudberry.yml index b81bd12965b..675e05e241d 100644 --- a/.github/workflows/build-dbg-cloudberry.yml +++ b/.github/workflows/build-dbg-cloudberry.yml @@ -105,7 +105,7 @@ on: branches: [main, REL_2_STABLE] pull_request: branches: [main, REL_2_STABLE] - types: [opened, synchronize, reopened, edited] + types: [opened, synchronize, reopened] workflow_dispatch: inputs: test_selection: @@ -115,8 +115,8 @@ on: type: string concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: false + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || format('run-{0}', github.run_id) }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} # Note: Step details, logs, and artifacts require users to be logged into GitHub # even for public repositories. This is a GitHub security feature and cannot diff --git a/.github/workflows/build-deb-cloudberry.yml b/.github/workflows/build-deb-cloudberry.yml index 5d873e72870..f84c18cb55d 100644 --- a/.github/workflows/build-deb-cloudberry.yml +++ b/.github/workflows/build-deb-cloudberry.yml @@ -77,7 +77,7 @@ on: branches: [main, REL_2_STABLE] pull_request: branches: [main, REL_2_STABLE] - types: [opened, synchronize, reopened, edited] + types: [opened, synchronize, reopened] workflow_dispatch: # Manual trigger inputs: ubuntu_version: @@ -96,6 +96,10 @@ on: default: '' type: string +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || format('run-{0}', github.run_id) }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + # Note: Step details, logs, and artifacts require users to be logged into GitHub # even for public repositories. This is a GitHub security feature and cannot # be overridden by permissions. diff --git a/.github/workflows/sqlancer-cloudberry.yml b/.github/workflows/sqlancer-cloudberry.yml index 76d7ec7c77c..0a6909ebfa7 100644 --- a/.github/workflows/sqlancer-cloudberry.yml +++ b/.github/workflows/sqlancer-cloudberry.yml @@ -54,7 +54,7 @@ on: branches: [main] pull_request: branches: [main] - types: [opened, synchronize, reopened, edited] + types: [opened, synchronize, reopened] workflow_dispatch: inputs: minutes_per_oracle: