From 5c0c1463de45b384926de397ec7bdd973dd60907 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Tue, 30 May 2023 23:36:34 -0700 Subject: [PATCH] chore: set concurrency in workflow (#174) --- .github/workflows/docker.rust.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/docker.rust.yml b/.github/workflows/docker.rust.yml index d345e07..fc5af78 100644 --- a/.github/workflows/docker.rust.yml +++ b/.github/workflows/docker.rust.yml @@ -17,6 +17,12 @@ on: - 'Cargo.lock' - 'crates/**' +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + + # If this is enabled it will cancel current running and start latest + cancel-in-progress: true + jobs: tests: runs-on: ubuntu-latest