Skip to content

Commit d00eb3c

Browse files
committed
ci: optimizations
1 parent dacd04a commit d00eb3c

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ on:
1313
pull_request:
1414
branches: [main]
1515

16-
# Cancel in-progress runs for PRs
16+
# Cancel in-progress runs when new commits are pushed
1717
concurrency:
1818
group: ${{ github.workflow }}-${{ github.ref }}
19-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
19+
cancel-in-progress: true
2020

2121
permissions:
2222
contents: read

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ on:
88
pull_request:
99
branches: [main]
1010

11-
# Cancel in-progress runs for PRs
11+
# Cancel in-progress runs when new commits are pushed
1212
concurrency:
1313
group: ${{ github.workflow }}-${{ github.ref }}
14-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
14+
cancel-in-progress: true
1515

1616
permissions:
1717
contents: read

.github/workflows/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
pull_request:
55
types: [opened, synchronize, reopened]
66

7+
# Cancel in-progress runs when new commits are pushed
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
712
permissions:
813
contents: read
914
pull-requests: write

.github/workflows/security.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
pull_request:
77
branches: [main]
88

9+
# Cancel in-progress runs when new commits are pushed
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
914
permissions:
1015
contents: read
1116
pull-requests: write

0 commit comments

Comments
 (0)