From 0bdbd8a90d8bc5227ffecdc72b0c1016023879e2 Mon Sep 17 00:00:00 2001 From: Robert Brennan Date: Thu, 2 May 2024 09:30:04 -0400 Subject: [PATCH] disable action concurrency (#1503) * disable action concurrency * empty commit --- .github/workflows/dummy-agent-test.yml | 10 +++++++++- .github/workflows/ghcr.yml | 4 ++++ .github/workflows/lint.yml | 4 ++++ .github/workflows/run-integration-tests.yml | 4 ++++ .github/workflows/run-unit-tests.yml | 4 ++++ 5 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dummy-agent-test.yml b/.github/workflows/dummy-agent-test.yml index 9c7187ce6e..baefd93ab8 100644 --- a/.github/workflows/dummy-agent-test.yml +++ b/.github/workflows/dummy-agent-test.yml @@ -1,6 +1,14 @@ name: Run e2e test with dummy agent -on: [push] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + +on: + push: + branches: + - main + pull_request: jobs: test: diff --git a/.github/workflows/ghcr.yml b/.github/workflows/ghcr.yml index 1da2c15736..1f19a869c0 100644 --- a/.github/workflows/ghcr.yml +++ b/.github/workflows/ghcr.yml @@ -1,5 +1,9 @@ name: Publish Docker Image +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + on: push: branches: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ea40f4cb31..0ff1f383e0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,5 +1,9 @@ name: Lint +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + on: push: branches: diff --git a/.github/workflows/run-integration-tests.yml b/.github/workflows/run-integration-tests.yml index 34ab3cf259..82b4a9355a 100644 --- a/.github/workflows/run-integration-tests.yml +++ b/.github/workflows/run-integration-tests.yml @@ -1,5 +1,9 @@ name: Run Integration Tests +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + on: push: branches: diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml index 47697da73d..6d05c4cfad 100644 --- a/.github/workflows/run-unit-tests.yml +++ b/.github/workflows/run-unit-tests.yml @@ -1,5 +1,9 @@ name: Run Unit Tests +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + on: push: branches: