Skip to content

Commit 1f2d54e

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

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/clang-format.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,18 @@ 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: ${{
15+
contains(github.event.pull_request.labels.*.name, 'DraftRunCI') ||
16+
!github.event.pull_request.draft
17+
}}
818
runs-on: ubuntu-24.04
919
env:
1020
CLANG_VERSION: 18

0 commit comments

Comments
 (0)