copy_file_to_another_repo_action icon indicating copy to clipboard operation
copy_file_to_another_repo_action copied to clipboard

How to copy full branch content to another repository ?

Open Keshapally opened this issue 1 year ago • 2 comments

Hi ,

I'm trying to copy all files & folders from 'source repo branch' to 'destination repo branch'. Can you suggest what should i pass input value in 'inputs.SOURCE_PATH' ?

i've tried as using "./" , "/." , "/* " but it fails

        uses: dmnemec/copy_file_to_another_repo_action@main
        env:
          API_TOKEN_GITHUB: ${{ secrets.GIT_TOKEN }}
        with:
          source_file: ${{ inputs.SOURCE_PATH }}
          destination_repo: ${{ inputs.destination_repo }} #owner/repo_name
          destination_branch: ATOM-updates #[optional] A branch to be created with this commit, defaults to commiting in destination_branch
          #destination_folder: ${{ inputs.SOURCE_PATH }}
          user_email: ${{ inputs.user_email }}
          user_name: ${{ inputs.user_name }}

Keshapally avatar Oct 30 '23 06:10 Keshapally

I am also facing the same problem.

s-sukriti avatar Nov 04 '23 14:11 s-sukriti

Not sure if this action is designed for mirroring entire repos / accepting regex. If you want to copy everything I'd opt for an action design for that like: https://github.com/pixta-dev/repository-mirroring-action

chasemcdo avatar Nov 14 '23 14:11 chasemcdo