diff --git a/.github/workflows/build-ffi.yml b/.github/workflows/build-ffi.yml index 04497d61..f0f1e47a 100644 --- a/.github/workflows/build-ffi.yml +++ b/.github/workflows/build-ffi.yml @@ -1,6 +1,16 @@ name: Pact-Rust FFI Build -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + branches: + - master + +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true jobs: build: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2c41762c..48e982e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,16 @@ name: Pact-Rust Build -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + branches: + - master + +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true jobs: build: @@ -55,4 +65,3 @@ jobs: - uses: actions/checkout@v3 - run: cargo check --no-default-features working-directory: rust - diff --git a/.github/workflows/compatability-suite.yml b/.github/workflows/compatability-suite.yml index b2a03729..832c9358 100644 --- a/.github/workflows/compatability-suite.yml +++ b/.github/workflows/compatability-suite.yml @@ -1,6 +1,16 @@ name: Pact-Rust Compatibility Suite -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + branches: + - master + +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true env: pact_do_not_track: true