-
Notifications
You must be signed in to change notification settings - Fork 300
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
Action not working without parent directory #111
Comments
Are they private repositories? Or public repositories? It would be useful a link to to the source repository to see the configuration of the action (which will help to spot some problem, or will help me to reproduce the problem). Otherwise, if you could reproduce the problem with two public repositories it might help (might help me spotting the problem). Without analysing your case a lot: I would have expected it to work, so I need to look into it more. |
Thanks for your answer. First, this is two private repo. Here is my push_repository.yml file : on: jobs: |
Please notice me if you need more informations |
I tried to reproduce your configuration. In here I'm copying from "source-directory: ." to the output: https://github.com/cpina/push-to-another-repository-example/blob/main/.github/workflows/ci.yml As seen in the output: https://github.com/cpina/push-to-another-repository-output and in the execution: https://github.com/cpina/push-to-another-repository-example/actions/runs/7066470938/job/19238385917 it seems to be ok! I don't understand why it would work if you had "source-directory: output/" but not work (with the same configuration) with "source-directory: .". This only makes copying certain folders across, nothing more. Could you copy-paste all the output of the log? (basically, what you see in https://github.com/cpina/push-to-another-repository-example/actions/runs/7066470938/job/19238385917 in the "Pushes to another repository"). Hopefully you don't need to remove things, but be careful because there might be private information. If you can, I would re-generate the token, do it carefully again just in case something is wrong. Try again to make it work with "source-directory: output/" (or a source-directory that exists) to double check that works with a directory... |
Hello, I was always using this github action with all my directories and files in a output main directory.
But this time i have all my dir and files at the root of my repo.
So ofc i switched from source-directory: "output" to source-directory: "." in my .yml file.
But now I have an error saying : fatal: repository 'https://github.com/xxx/yyy.git/' not found
And of course when i placed everything in my output directory i didn't had this problem.
Could you help me with this ?
The text was updated successfully, but these errors were encountered: