diff --git a/.github/workflows/esy.yml b/.github/workflows/esy.yml index c0f715a..a339c2f 100644 --- a/.github/workflows/esy.yml +++ b/.github/workflows/esy.yml @@ -4,6 +4,11 @@ on: branches: [main] pull_request: +# This will cancel previous runs when a branch or PR is updated +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }} + cancel-in-progress: true + jobs: build: name: Build and test diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml index 2f3f95c..2124c01 100644 --- a/.github/workflows/js.yml +++ b/.github/workflows/js.yml @@ -4,6 +4,11 @@ on: branches-ignore: - main +# This will cancel previous runs when a branch or PR is updated +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }} + cancel-in-progress: true + jobs: build: name: "Build with emsdk" diff --git a/.github/workflows/opam.yml b/.github/workflows/opam.yml index 08d15c8..eda1d35 100644 --- a/.github/workflows/opam.yml +++ b/.github/workflows/opam.yml @@ -4,6 +4,11 @@ on: branches: [main] pull_request: +# This will cancel previous runs when a branch or PR is updated +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }} + cancel-in-progress: true + jobs: build: name: Build and test