From eb5705e9ce7f7418c3f66f268f6ae65282cfcae4 Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Thu, 28 Jul 2022 12:07:24 +0800 Subject: [PATCH] Run CI only on latest PR commit --- .github/workflows/rust.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2f1106bb0..8f30d885e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -6,6 +6,10 @@ on: branches: - master +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + env: CARGO_TERM_COLOR: always