Skip to content

Commit db131a5

Browse files
d-e-s-odanielocfb
authored andcommitted
Make kernel version to generate headers for configurable in CI
Make the kernel version to generate headers for configurable when triggered from the UI. Because Actions are stupid, we can't introduce a constant and have to hardcode the default twice -- at least if we want users to see what version to generate for by default. So at least make sure to keep the definition in the same file by not making it an input to the workflow_call event as well. Signed-off-by: Daniel Müller <deso@posteo.net>
1 parent 679a3da commit db131a5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/vmlinux.h.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
branches:
77
- main
88
workflow_dispatch:
9+
inputs:
10+
kernel-ref:
11+
description: 'Kernel version (Git tag/ref)'
12+
required: true
13+
# Keep in sync with string used in `checkout` invocation below.
14+
default: 'v6.18'
915
workflow_call:
1016

1117
jobs:
@@ -31,7 +37,7 @@ jobs:
3137
uses: actions/checkout@v6
3238
with:
3339
repository: 'torvalds/linux'
34-
ref: 'v6.18'
40+
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.kernel-ref || 'v6.18' }}
3541
fetch-depth: 1
3642
path: linux/
3743

0 commit comments

Comments
 (0)