From 1e20ac6c926aa1eaf751f5f45b1b18ec7d2990a2 Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Thu, 2 Feb 2023 11:42:44 +0800 Subject: [PATCH] ci: Cancel when there is a new change Signed-off-by: Shiming Zhang --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b1884a05..1cdfa0cbc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,10 @@ on: # Run workflow on fork repository will help contributors find and resolve issues before sending a PR. push: pull_request: +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.actor }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: golangci: name: lint