Skip to content

Commit 1e67c1e

Browse files
committed
get-linux-source: use an env var for the ACTION_PATH
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>
1 parent 11fa8b6 commit 1e67c1e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

get-linux-source/action.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ runs:
1717
steps:
1818
- name: Get bpf-next source
1919
shell: bash
20+
env:
21+
ACTION_PATH: ${{ github.action_path }}
22+
KERNEL_ORIGIN: ${{ inputs.repo }}
23+
KERNEL_BRANCH: ${{ inputs.rev }}
24+
REPO_PATH: ${{ inputs.dest }}
2025
run: |
21-
export KERNEL_ORIGIN='${{ inputs.repo }}'
22-
export KERNEL_BRANCH='${{ inputs.rev }}'
23-
export REPO_PATH='${{ inputs.dest }}'
24-
${{ github.action_path }}/checkout_latest_kernel.sh
26+
${ACTION_PATH}/checkout_latest_kernel.sh

0 commit comments

Comments
 (0)