Skip to content

get-linux-source: use an env var for the ACTION_PATH#219

Merged
theihor merged 1 commit intomainfrom
fix-action-path
Mar 11, 2026
Merged

get-linux-source: use an env var for the ACTION_PATH#219
theihor merged 1 commit intomainfrom
fix-action-path

Conversation

@theihor
Copy link
Contributor

@theihor theihor commented Mar 11, 2026

Move ${{ github.action_path }} from inline run: usage to env: section as ACTION_PATH. The runner's ContainerStepHost translates env var paths for container jobs (host path → container path), but does not translate paths embedded in run: script content. This fixes composite actions when called from a workflow with a container: directive.

Also move inline export vars (KERNEL_ORIGIN, KERNEL_BRANCH, REPO_PATH) to env: for consistency with other actions in this repo.

[1] https://github.com/actions/runner/blob/main/src/Runner.Worker/Handlers/StepHost.cs#L108

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

Move ${{ github.action_path }} from inline run: usage to env: section
as ACTION_PATH. The runner's ContainerStepHost translates env var paths
for container jobs (host path → container path), but does not translate
paths embedded in run: script content. This fixes composite actions
when called from a workflow with a container: directive.

Also move inline export vars (KERNEL_ORIGIN, KERNEL_BRANCH, REPO_PATH)
to env: for consistency with other actions in this repo.

[1] https://github.com/actions/runner/blob/main/src/Runner.Worker/Handlers/StepHost.cs#L108

Assisted-by: Claude:claude-opus-4-6
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
@theihor theihor merged commit 1e67c1e 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