Skip to content

Commit d565448

Browse files
committed
chore: Require Draft PRs to opt in to run CI with a label
- "DraftRunCI"
1 parent b1f446a commit d565448

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/clang-format.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@ name: clang-format
33
on: [push, pull_request]
44

55
jobs:
6+
info:
7+
runs-on: ubuntu-24.04
8+
steps:
9+
- name: info
10+
run: |
11+
echo '${{ toJSON(ubuntu.event) }}'
12+
613
check:
7-
if: ${{ !contains(github.event.pull_request.labels.*.name, 'NoCI') }}
14+
if: ${{ contains(github.event.pull_request.labels.*.name, 'DraftRunCI') || !github.event.pull_request.draft }}
815
runs-on: ubuntu-24.04
916
env:
1017
CLANG_VERSION: 18

0 commit comments

Comments
 (0)