From 19125450eeb1980d90c0f2d0b45538160707762e Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Wed, 5 Jul 2023 17:15:58 +0800 Subject: [PATCH] ci: cancel previous runs in the PR when pushed new commits Signed-off-by: zhuwenxing --- .github/workflows/main.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index f65f9bcd..b85226c7 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -39,6 +39,9 @@ on: schedule: - cron: '0 0 * * *' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: test-backup-restore-cli: