Skip to content

Commit f97e49f

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

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+
: '${{ github.event_name }}'
12+
: '${{ github.event.pull_request.draft }}'
13+
: '${{ toJSON(github.event.pull_request.labels.*.name) }}'
14+
: '${{ toJSON(github.event) }}'
15+
616
check:
7-
if: ${{ !contains(github.event.pull_request.labels.*.name, 'NoCI') }}
17+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }}
818
runs-on: ubuntu-24.04
919
env:
1020
CLANG_VERSION: 18

0 commit comments

Comments
 (0)