Skip to content

ci: pass all inputs via env vars in composite actions#220

Merged
theihor merged 1 commit intomainfrom
inputs-to-envs
Mar 11, 2026
Merged

ci: pass all inputs via env vars in composite actions#220
theihor merged 1 commit intomainfrom
inputs-to-envs

Conversation

@theihor
Copy link
Contributor

@theihor theihor commented Mar 11, 2026

In container jobs, ${{ github.action_path }} and ${{ inputs.* }} expressions in run: blocks evaluate to host paths that don't exist inside the container. The runner's ContainerStepHost translates env var values but not run: script content.

Move all inline expressions to env: sections for consistency and container compatibility:

  • get-linux-source: ACTION_PATH, KERNEL_ORIGIN, KERNEL_BRANCH, REPO_PATH
  • download-vmlinux: ACTION_PATH, KERNEL
  • patch-kernel: REPO_ROOT, PATCHES_ROOT
  • build-selftests: ARCH, KERNEL_ROOT, TOOLCHAIN

Assisted-by: Claude:claude-opus-4-6

In container jobs, ${{ github.action_path }} and ${{ inputs.* }}
expressions in run: blocks evaluate to host paths that don't exist
inside the container. The runner's ContainerStepHost translates env
var values but not run: script content.

Move all inline expressions to env: sections for consistency and
container compatibility:
- get-linux-source: ACTION_PATH, KERNEL_ORIGIN, KERNEL_BRANCH, REPO_PATH
- download-vmlinux: ACTION_PATH, KERNEL
- patch-kernel: REPO_ROOT, PATCHES_ROOT
- build-selftests: ARCH, KERNEL_ROOT, TOOLCHAIN

Assisted-by: Claude:claude-opus-4-6
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
@theihor theihor merged commit 9201428 into main Mar 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant