Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fix(pr-label): mitigate excessive concurrent runs

Reinier van der Leeref7b417105da
diff --git a/.github/workflows/pr-label.yml b/.github/workflows/pr-label.yml
index 63696e42d0..a91141315a 100644
--- a/.github/workflows/pr-label.yml
+++ b/.github/workflows/pr-label.yml
@@ -7,6 +7,9 @@ on:
# In `pull_request` we wouldn't be able to change labels of fork PRs
pull_request_target:
types: [opened, synchronize]
+concurrency:
+ group: ${{ github.event_name == 'pull_request_target' && format('pr-label-{0}', github.event.pull_request.number) || '' }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request_target' || '' }}
jobs:
conflicts: