Skip to content

Commit 4be758a

Browse files
committed
ci: improvements
1 parent 6d6522a commit 4be758a

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/docs-validate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ on:
3838
default: "false"
3939
type: boolean
4040

41-
# Cancel in-progress runs for PRs, queue for main
41+
# Cancel in-progress runs when new commits are pushed
4242
concurrency:
4343
group: ${{ github.workflow }}-${{ github.ref }}
44-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
44+
cancel-in-progress: true
4545

4646
# Minimal permissions - principle of least privilege
4747
permissions:

.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: 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

0 commit comments

Comments
 (0)