We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb4d2b0 commit ffb20c6Copy full SHA for ffb20c6
.github/workflows/build.yml
@@ -5,6 +5,14 @@ on:
5
- master
6
pull_request:
7
8
+concurrency:
9
+ # We use the pull request number to ensure that each PR has a unique concurrency group. This prevents different PRs from interfering
10
+ # with each other, especially when multiple PRs originate from the same branch. If the pull request number is not available, we fall
11
+ # back to using the branch name (`github.head_ref`) or the full reference (`github.ref`), ensuring uniqueness.
12
+ #
13
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }}
14
+ cancel-in-progress: true
15
+
16
jobs:
17
ci:
18
runs-on: ${{ matrix.os }}
0 commit comments