mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1909] Allows configuration of workdir (GITHUB_WORKSPACE) for containers created by act #922
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#922
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @theodiem on GitHub (Jul 12, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1909
Act version
0.2.48
Feature description
Currently act sets the workdir (and thus
GITHUB_WORKSPACEenv 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-directoryonly partially solves the issue since there are incompatibilities with other actions such as reported in https://github.com/actions/checkout/issues/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/workspaceand then it was updated to use the current dir. Would be nice to be able to actually specify it.@Flyingmana commented on GitHub (Oct 8, 2023):
I would also like to have a way to configure this.
The Action
SonarSource/sonarcloud-github-actionparses code coverage files(which contain absolut file paths) and on github its always using/github/workspacemaking it needed to have a step which changes paths accordingly.github.com/OpenMage/magento-lts@6a3a92e47c/.github/workflows/sonar.yml (L50-L71)@leleobhz commented on GitHub (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?