From c64becf80cf30d580453ceb982ba055a73a9a1d3 Mon Sep 17 00:00:00 2001 From: gegoune <69750637+gegoune@users.noreply.github.com> Date: Thu, 14 Mar 2024 07:36:22 +0200 Subject: [PATCH] ci: set concurrency and trigger ci on master (#2701) --- .github/workflows/ci.yml | 6 ++++++ .github/workflows/release-please.yml | 4 +++- .github/workflows/semantic-pr-subject.yml | 4 +++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ba66eae..54a61d28 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,8 +2,14 @@ name: CI on: pull_request: + push: + branches: [master] workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + permissions: contents: read diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 93de5fb2..bd97e491 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -3,7 +3,9 @@ on: branches: - master workflow_dispatch: - +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true name: release-please permissions: contents: write diff --git a/.github/workflows/semantic-pr-subject.yml b/.github/workflows/semantic-pr-subject.yml index 35c643e5..f3f67d09 100644 --- a/.github/workflows/semantic-pr-subject.yml +++ b/.github/workflows/semantic-pr-subject.yml @@ -7,7 +7,9 @@ on: - edited - synchronize workflow_dispatch: - +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true jobs: semantic-pr-subject: runs-on: ubuntu-latest