From 171b06f4917ac9056498cbab80fac0659bb23c6f Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Wed, 5 Jul 2023 19:17:30 +0800 Subject: [PATCH] ci: cancel previous runs in the PR when pushed new commits (#154) 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 bad24e80..a5301780 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-cross-version: