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

Allows configuration of workdir (GITHUB_WORKSPACE) for containers created by act #1909

Open
theodiem opened this issue Jul 12, 2023 · 2 comments
Labels
kind/feature-request New feature or request

Comments

@theodiem
Copy link

Act version

0.2.48

Feature description

Currently act sets the workdir (and thus GITHUB_WORKSPACE env var) for its created containers to the current dir which act is called from.
On certain platforms/scenarios this can lead to awful long paths also with possible unicode/etc. Making use of jobs.steps[].run.working-directory only partially solves the issue since there are incompatibilities with other actions such as reported in actions/checkout#197 .

Would be nice to be able to configure in .actrc the workdir/GITHUB_WORKSPACE used when it creates containers. In the past it was fixed to /github/workspace and then it was updated to use the current dir. Would be nice to be able to actually specify it.

@theodiem theodiem added the kind/feature-request New feature or request label Jul 12, 2023
@Flyingmana
Copy link

I would also like to have a way to configure this.
The Action SonarSource/sonarcloud-github-action parses code coverage files(which contain absolut file paths) and on github its always using /github/workspace making it needed to have a step which changes paths accordingly.

https://github.com/OpenMage/magento-lts/blob/6a3a92e47cfeacfe9ebfe684ea5f48e662a5f974/.github/workflows/sonar.yml#L50-L71

@leleobhz
Copy link

leleobhz commented Oct 9, 2024

Hello!

This issue also affects me ( https://github.com/BaileyJM02/markdown-to-pdf/blob/main/src/github_interface.js#L12 is not configurable and triggers https://github.com/BaileyJM02/markdown-to-pdf/blob/main/src/github_interface.js#L44 ).

It's possible to do it compatible with Github folder structure - or at least configurable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants