From 1d709aadef94c35ff8a403ab1a65f7343c011074 Mon Sep 17 00:00:00 2001 From: Rickard Date: Tue, 27 Feb 2024 20:15:02 +0100 Subject: [PATCH] Add concurrency to not waste precious build minutes when modifying PRs frequently. (#1051) Co-authored-by: wkpark --- .github/workflows/python-package.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index faa30ca30..c85cd063d 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -15,10 +15,13 @@ on: - 'setup.py' - 'pyproject.toml' - 'pytest.ini' - - '**/*.md' release: types: [ published ] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: ##