diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 4246186..e574c14 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -1,8 +1,16 @@ name: Pact Plugin Examples on: - - push - - pull_request + push: + branches: + - main + pull_request: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true jobs: csv-examples: diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index aef7afe..f9d7ec2 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,8 +1,16 @@ name: Pact Plugin Driver (Gradle) on: - - push - - pull_request + push: + branches: + - main + pull_request: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true jobs: latest_jdk: diff --git a/.github/workflows/plugin-cli.yml b/.github/workflows/plugin-cli.yml index 2f1a42f..24fcabd 100644 --- a/.github/workflows/plugin-cli.yml +++ b/.github/workflows/plugin-cli.yml @@ -1,6 +1,16 @@ name: Pact Plugin CLI -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true jobs: build: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6076dde..d3b8ce3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,14 +2,17 @@ name: Release workflow on: release: - types: [published] - + types: + - published + push: + branches: + - main pull_request: branches: - main - + concurrency: - group: release-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} cancel-in-progress: true jobs: diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index da45b90..96f2e74 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,6 +1,19 @@ name: Pact Plugin Driver (Rust) -on: [push, pull_request] +on: + release: + types: + - published + push: + branches: + - main + pull_request: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true jobs: build: