Skip to content

Fix Windows action script path#23

Open
llucax wants to merge 1 commit into
frequenz-floss:v1.x.xfrom
llucax:fix-22
Open

Fix Windows action script path#23
llucax wants to merge 1 commit into
frequenz-floss:v1.x.xfrom
llucax:fix-22

Conversation

@llucax
Copy link
Copy Markdown
Contributor

@llucax llucax commented Jun 4, 2026

On Windows, github.action_path expands to a path with backslashes. Interpolating it directly into a bash run step makes bash consume those backslashes while parsing the generated script, producing an invalid path.

Use $GITHUB_ACTION_PATH so the path is expanded from the environment at runtime, after bash has tokenized the wrapper script.

Fixes #22.

On Windows, `github.action_path` expands to a path with backslashes.
Interpolating it directly into a bash `run` step makes bash consume those
backslashes while parsing the generated script, producing an invalid path.

Use `$GITHUB_ACTION_PATH` so the path is expanded from the environment at
runtime, after bash has tokenized the wrapper script.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@llucax llucax requested a review from a team as a code owner June 4, 2026 13:33
@llucax llucax requested review from tiyash-basu-frequenz and removed request for a team June 4, 2026 13:33
@github-actions github-actions Bot added part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) part:action Affects the action itself labels Jun 4, 2026
@llucax llucax enabled auto-merge June 4, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:action Affects the action itself part:tooling Affects the development tooling (CI, deployment, dependency management, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

After updating from v1.0.1 to v1.0.4 the action doesn't work with windows anymore

1 participant