dmnemec / copy_file_to_another_repo_action

This GitHub Action copies a file from the current repository to a location in another repository
Apache License 2.0
182 stars 201 forks source link

How to copy full branch content to another repository ? #83

Open Keshapally opened 10 months ago

Keshapally commented 10 months ago

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 }}
s-sukriti commented 10 months ago

I am also facing the same problem.

chasemcdo commented 10 months ago

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