copy_file_to_another_repo_action
copy_file_to_another_repo_action copied to clipboard
How to copy full branch content to another repository ?
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 }}
I am also facing the same problem.
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