monorepo-split-github-action icon indicating copy to clipboard operation
monorepo-split-github-action copied to clipboard

Can't get it running

Open jonnitto opened this issue 2 years ago • 3 comments

I've created a new repository with an readme file and try to run the action, but'll get following error

[NOTE] Resolving configuration...



[NOTE] Cloning "https://github.com/MY_ORG_NAME/Base.AssetList.git" repository to "/tmp/monorepo_split/clone_directory" directory



[NOTE] Running: git clone -- https://***@github.com/MY_ORG_NAME/Base.AssetList.git /tmp/monorepo_split/clone_directory

Cloning into '/tmp/monorepo_split/clone_directory'...


[NOTE] Cleaning destination repository of old files



[NOTE] Copying contents to git repo of "49d3bc83602b61bd989e49efa87fd24b132b8f98" branch



[NOTE] Files that will be pushed

total 28
drwxr-xr-x 6 1001  123 4096 Jul  7 20:32 .
drwxr-xr-x 3 root root 4096 Jul  7 20:32 ..
drwxr-xr-x 8 root root 4096 Jul  7 20:32 .git
drwxr-xr-x 2 1001  123 4096 Jul  7 20:32 Configuration
drwxr-xr-x 2 1001  123 4096 Jul  7 20:32 NodeTypes
drwxr-xr-x 3 1001  123 4096 Jul  7 20:32 Resources
fatal: detected dubious ownership in repository at '/github/workspace'
To add an exception for this directory, call:

	git config --global --add safe.directory /github/workspace
-rw-r--r-- 1 1001  123  328 Jul  7 20:32 composer.json

[NOTE] Changing directory from "/github/workspace" to "/tmp/monorepo_split/build_directory"

fatal: detected dubious ownership in repository at '/tmp/monorepo_split/build_directory'
To add an exception for this directory, call:

	git config --global --add safe.directory /tmp/monorepo_split/build_directory
fatal: detected dubious ownership in repository at '/tmp/monorepo_split/build_directory'
To add an exception for this directory, call:

	git config --global --add safe.directory /tmp/monorepo_split/build_directory


[NOTE] No files to change



[NOTE] Changing directory from "/tmp/monorepo_split/build_directory" to "/github/workspace"

What I am doing wrong? I've set up everything just like in the readme

jonnitto avatar Jul 07 '23 19:07 jonnitto

This should fix the issue :) uses: "danharrin/[email protected]"

mkoziy avatar Jul 09 '23 19:07 mkoziy

Nope, that didn't help as I've already done it that way.

I try to fix it in my fork, and it work if I moved the commands from the Dockerfile to the entrypoint.php file.

jonnitto avatar Jul 11 '23 12:07 jonnitto

Hi, seems that @v2.3.0 worked for me. Thanks!

ptomulik avatar Apr 25 '24 07:04 ptomulik