From c56cfd2b2c22143928144d4260e0a7f36d84dce1 Mon Sep 17 00:00:00 2001 From: Rickard Date: Wed, 7 Feb 2024 18:27:54 +0100 Subject: [PATCH] Add concurrency to not waste precious build minutes when modifying PRs frequently. 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 265128637..23defcc3b 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: ##