question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to specify a working-directory

See original GitHub issue

Describe 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.

image

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

2reactions
tamascsabacommented, Aug 8, 2022
1reaction
martijnvdbrugcommented, Aug 18, 2022

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.

jobs:
  test:
    name: E2e testing
    runs-on: ubuntu-latest
    defaults:
      run:
        shell: bash
        working-directory: packages/e2e

Supporting this would be great!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found