From 0f48e9b281624b4d4e3e3658856988ba249f4e6d Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Sat, 4 Feb 2023 13:58:10 -0300 Subject: [PATCH] Add concurrency configuration to the GitHub Action workflows --- .../code/quarkiverse/java/.github/workflows/build.yml | 10 +++++++++- .../quarkiverse/java/.github/workflows/pre-release.yml | 8 ++++++++ .../.github/workflows/quarkus-snapshot.tpl.qute.yaml | 8 ++++++++ .../quarkiverse/java/.github/workflows/release.yml | 8 ++++++++ 4 files changed, 33 insertions(+), 1 deletion(-) diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/build.yml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/build.yml index b42ba3bdf2f71..a709c3b0df13a 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/build.yml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/build.yml @@ -22,6 +22,14 @@ on: - '*.txt' - '.all-contributorsrc' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +defaults: + run: + shell: bash + jobs: build: name: Build on ${{ matrix.os }} @@ -48,4 +56,4 @@ jobs: run: mvn -B clean verify -Dno-format - name: Build with Maven (Native) - run: mvn -B verify -Dnative -Dquarkus.native.container-build -Dnative.surefire.skip + run: mvn -B verify -Dnative -Dquarkus.native.container-build -Dnative.surefire.skip \ No newline at end of file diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/pre-release.yml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/pre-release.yml index 63d9d0fa196f0..0a9e64eaa882f 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/pre-release.yml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/pre-release.yml @@ -5,6 +5,14 @@ on: paths: - '.github/project.yml' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +defaults: + run: + shell: bash + jobs: release: runs-on: ubuntu-latest diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/quarkus-snapshot.tpl.qute.yaml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/quarkus-snapshot.tpl.qute.yaml index 78cb989e266ee..ed334a3b39e75 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/quarkus-snapshot.tpl.qute.yaml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/quarkus-snapshot.tpl.qute.yaml @@ -18,6 +18,14 @@ env: ECOSYSTEM_CI_REPO_PATH: quarkiverse-{extension.id} +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +defaults: + run: + shell: bash + jobs: build: name: "Build against latest Quarkus snapshot" diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/release.yml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/release.yml index 32bbddd82a3b5..0bd8c3f03137e 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/release.yml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/release.yml @@ -6,6 +6,14 @@ on: paths: - '.github/project.yml' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +defaults: + run: + shell: bash + jobs: release: runs-on: ubuntu-latest