From cb2f596567583cb62c70db3e4810afda4a631050 Mon Sep 17 00:00:00 2001 From: developomp Date: Sun, 9 Jul 2023 10:25:26 +0900 Subject: [PATCH] ci: stop previous deploy if a new one starts --- .github/workflows/deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7a951b6..0c8353c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,6 +5,9 @@ on: push: branches: - master +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: deploy: if: ${{ github.repository_owner == 'developomp' }}