Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow changing the directory where the script runs #426

Open
joshmgross opened this issue Oct 16, 2023 · 1 comment
Open

Allow changing the directory where the script runs #426

joshmgross opened this issue Oct 16, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@joshmgross
Copy link
Member

As discussed in #412, run steps support a working-directory option for changing the working directory where the command runs.

https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsworking-directory

This does not work for uses steps, requiring users to modify their scripts to include a process.chdir.

It would be nice if the action could do that with a working-directory input, avoiding the need to modify a script.

@joshmgross joshmgross added enhancement New feature or request good first issue Good for newcomers labels Oct 16, 2023
@joshmgross
Copy link
Member Author

There's also a suggestion in #412 (comment) to default to the defaults.run.working-directory.

I'm not sure if the action has access to that information and it could be a breaking change for users who have already modified their scripts to match the working-directory set for run steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant