ci: Enforce concurrency to reduce CI loads (#1738)

# What does this PR do?

When multiple commits are pushed to a PR, multiple CI builds will be
triggered. This PR ensures that we only run one concurrent build for
each PR to reduce CI loads.

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
This commit is contained in:
Yuan Tang 2025-03-20 22:28:47 -04:00 committed by GitHub
parent 5b9c366614
commit 934de0a281
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 24 additions and 0 deletions

View file

@ -22,6 +22,10 @@ on:
- 'pyproject.toml'
- '.github/workflows/update-readthedocs.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update-readthedocs:
runs-on: ubuntu-latest