diff --git a/.github/workflows/java-checkstyle.yml b/.github/workflows/java-checkstyle.yml index d3cb179cfc9..965f0432e98 100644 --- a/.github/workflows/java-checkstyle.yml +++ b/.github/workflows/java-checkstyle.yml @@ -17,6 +17,9 @@ on: pull_request_target: branches: [ main ] +concurrency: + group: java-checkstyle-${{ github.head_ref }} + cancel-in-progress: true jobs: java-checkstyle: runs-on: ${{matrix.os}} @@ -62,4 +65,4 @@ jobs: - name: Java checkstyle failed, check the comment in the PR if: steps.git.outcome != 'success' run: | - exit 1 \ No newline at end of file + exit 1 diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index fb98741ee8a..c3e761d2a1a 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -23,6 +23,9 @@ on: - "catalog-rest-service/**" - "openmetadata-ui/**" +concurrency: + group: maven-build-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: test: runs-on: ${{matrix.os}} diff --git a/.github/workflows/openmetadata-ingestion-core-version-comment.yml b/.github/workflows/openmetadata-ingestion-core-version-comment.yml index d17d12b3cf3..dd1605a7c1e 100644 --- a/.github/workflows/openmetadata-ingestion-core-version-comment.yml +++ b/.github/workflows/openmetadata-ingestion-core-version-comment.yml @@ -20,6 +20,9 @@ on: paths: - 'catalog-rest-service/src/main/resources/json/schema/**' +concurrency: + group: openmetadata-ingestion-core-version-comment-${{ github.head_ref }} + cancel-in-progress: true jobs: py-ingestion-core-comment: runs-on: ubuntu-latest diff --git a/.github/workflows/py-checkstyle.yml b/.github/workflows/py-checkstyle.yml index 48aebf44692..10fda3c3e53 100644 --- a/.github/workflows/py-checkstyle.yml +++ b/.github/workflows/py-checkstyle.yml @@ -17,6 +17,9 @@ on: pull_request_target: branches: [ main ] +concurrency: + group: py-checkstyle-${{ github.head_ref }} + cancel-in-progress: true jobs: py-checkstyle: runs-on: ${{matrix.os}} diff --git a/.github/workflows/py-generate.yml b/.github/workflows/py-generate.yml index 92ceb1428df..66ef7d07470 100644 --- a/.github/workflows/py-generate.yml +++ b/.github/workflows/py-generate.yml @@ -18,6 +18,9 @@ on: paths: - 'catalog-rest-service/src/main/resources/json/**' +concurrency: + group: py-generate-${{ github.head_ref }} + cancel-in-progress: true jobs: validate: runs-on: ubuntu-latest diff --git a/.github/workflows/py-ingestion-core-publish.yml b/.github/workflows/py-ingestion-core-publish.yml index 29b1c8ab1e7..694a7c90564 100644 --- a/.github/workflows/py-ingestion-core-publish.yml +++ b/.github/workflows/py-ingestion-core-publish.yml @@ -24,6 +24,9 @@ on: - 'catalog-rest-service/src/main/resources/json/schema/**' - 'ingestion-core/src/metadata/_version.py' +concurrency: + group: py-ingestion-core-publish-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: py-core-build-and-push: runs-on: ubuntu-latest diff --git a/.github/workflows/py-tests.yml b/.github/workflows/py-tests.yml index 82a4c44490a..1e10b7d0cd7 100644 --- a/.github/workflows/py-tests.yml +++ b/.github/workflows/py-tests.yml @@ -23,6 +23,9 @@ on: - ingestion/** - catalog-rest-service/** +concurrency: + group: py-tests-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: py-run-tests: runs-on: ubuntu-latest diff --git a/.github/workflows/selenium-noIngestion-tests.yml b/.github/workflows/selenium-noIngestion-tests.yml index fc0ee1cffa8..b159ab25346 100644 --- a/.github/workflows/selenium-noIngestion-tests.yml +++ b/.github/workflows/selenium-noIngestion-tests.yml @@ -26,6 +26,9 @@ on: - 'openmetadata-ui/src/main/resources/ui/**' - 'openmetadata-ui/src/test/java/org/openmetadata/catalog/selenium/pagesWithoutData/**' +concurrency: + group: selenium-noIngestion-tests-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: build: diff --git a/.github/workflows/selenium-tests.yml b/.github/workflows/selenium-tests.yml index 744029c0c7d..5ecb5daf972 100644 --- a/.github/workflows/selenium-tests.yml +++ b/.github/workflows/selenium-tests.yml @@ -25,6 +25,9 @@ on: paths: - 'openmetadata-ui/src/main/resources/ui/**' - 'openmetadata-ui/src/test/java/org/openmetadata/catalog/selenium/pages/**' +concurrency: + group: selenium-tests-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: build: diff --git a/.github/workflows/yarn-coverage.yml b/.github/workflows/yarn-coverage.yml index 82693303080..2205bc3a8a4 100644 --- a/.github/workflows/yarn-coverage.yml +++ b/.github/workflows/yarn-coverage.yml @@ -14,6 +14,9 @@ on: - openmetadata-ui/src/main/resources/ui/** env: UI_WORKING_DIRECTORY: openmetadata-ui/src/main/resources/ui +concurrency: + group: yarn-coverage-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: coverage-tests: strategy: