[GH-ISSUE #2044] ignore files in copy process #979

Open
opened 2026-03-01 21:47:54 +03:00 by kerem · 0 comments
Owner

Originally created by @maxreb on GitHub (Oct 11, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/2044

Act version

act version 0.2.52

Feature description

When working in a monorepo the "git clone" process takes up to 20 minutes. It is because it copies the entire repository to docker with this command:

 docker cp src=/mnt/c/Users/xxx/source/repos/my-monorepo/. dst=/mnt/c/Users/xxx/source/repos/my-monorepo

This is the command I use to start the process:

act -W .github/workflows/nuget-build-and-publish.yml -e <(echo '{"ref": "refs/tags/nuget/1.0.0"}') push

This is probably also because I use act with wsl2 which is not very efficent especially in terms of files

Could there be a feature where act ignores the files, that are also ignored in the .gitignore file? Because the repo itself isn't that big, but all the binaries are.

Originally created by @maxreb on GitHub (Oct 11, 2023). Original GitHub issue: https://github.com/nektos/act/issues/2044 ### Act version act version 0.2.52 ### Feature description When working in a monorepo the "git clone" process takes up to 20 minutes. It is because it copies the entire repository to docker with this command: ``` docker cp src=/mnt/c/Users/xxx/source/repos/my-monorepo/. dst=/mnt/c/Users/xxx/source/repos/my-monorepo ``` This is the command I use to start the process: ``` act -W .github/workflows/nuget-build-and-publish.yml -e <(echo '{"ref": "refs/tags/nuget/1.0.0"}') push ``` This is probably also because I use act with wsl2 which is not very efficent especially in terms of files Could there be a feature where act ignores the files, that are also ignored in the `.gitignore` file? Because the repo itself isn't that big, but all the binaries are.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#979
No description provided.