Allow to specify a working-directory
See original GitHub issueDescribe the bug My workflow expects the script to be executed from a specific directory, so I use something like this:
- name: Do foo
working-directory: some-dir
run: ./foo
When porting this to retry, I cannot set the working-directory for the step, as it only works with run.
Similar issue: https://stackoverflow.com/questions/67299058/running-github-actions-for-uses-in-another-directory
Expected behavior
Retry should allow to specify a working-directory
Screenshots If applicable, add screenshots to help explain your problem.

Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:5
Top Results From Across the Web
Allow specifying VSTest@2 workingDirectory
I have a test assembly that needs to dynamically load a C++ DLL that exists in the same folder as the test assembly....
Read more >Change current working directory in Azure Pipelines
I'm developing a CI for Python package in Azure Pipelines (https://github.com/scikit-image/scikit-image/blob/azure-pipelines/azure-pipelines.yml) ...
Read more >How do I set an executable's working directory via ...
To explicitly set the working directory, a PowerShell solution would be to use the Start-Process cmdlet with the -WorkingDirectory parameter.
Read more >Allow specifying nearest config directory as working directory
Currently, I can specify that the eslint working directory should be. workspace folder; linted file directory; "auto" inferred (the meaning ...
Read more >Python: Get and Change the Working Directory
Learn how to use Python to get and change the working directory of your code, using the os library and how to identify...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

It would be really great to support the default working-directory too: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-set-the-default-shell-and-working-directory
First of all, great action! @tamascsaba this would also be my prefered way of working. I defined my default working directory in the action, and all other steps use this directory except the retry-action.
Supporting this would be great!