Copies files from a workflow run to another repository
Required Source path in the workflow
Required Target repository
The branch the source is copied to. If unset the default branch is used.
Required The path the source is copied to. Must contain the target file name.
Required Commit Message
The mail address used in the commit
The mail address used in the commit
Required SSH key used for pushing and pulling.
None
Run the following command:
ssh-keygen -f /tmp/deploy_key -N ''
Put the private key to the Action secrets of the source repository ( = the repository that runs the action) Screenshot of Repository Settings -> Secrets -> Actions
- Name: An arbitrary identifier that will be used to identify the secret from within the pipeline
- Value: The content of
/tmp/deploy_key
.
Put the public key to the Deploy keys of the target repository ( = the repository where the files are copied to)
- Title: An arbitrary identifier. It makes sense to mention the source repository here.
- Key: The content of
/tmp/deploy_key.pub
. - Allow write access: Must be checked