Skip to content

Commit 002ef04

Browse files
Add [skip ci] and [ci skip] support to workflow
- Workflow now checks commit message for [skip ci] or [ci skip] - If either flag is present, the entire workflow is skipped - Allows developers to push changes without triggering CI when not needed Usage: git commit -m "docs: update README [skip ci]" git commit -m "wip: work in progress [ci skip]" Signed-off-by: Shreeya Patel <[email protected]>
1 parent 50957aa commit 002ef04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/kernel-build-and-test-x86_64.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
build:
1212
name: Build kernel
1313
runs-on: kernel-build
14+
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
1415

1516
steps:
1617
- name: Checkout kernel source

0 commit comments

Comments
 (0)