-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
37 lines (37 loc) · 1.3 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
name: GitHub Mirror
author: bhcleek
description: ⤵️ Mirror remote repository
branding:
icon: 'git-branch'
color: 'gray-dark'
inputs:
source_repo:
description: GitHub public repo slug or full clone URL
required: false
destination_repo:
description: GitHub public repo slug or Full clone URL
required: false
ssh_private_key:
description: SSH key used to authenticate with source and destination ssh urls provided (optional if public or https url with authentication)
required: false
source_ssh_private_key:
description: SSH key used to authenticate with source ssh url provided (optional if public or https url with authentication)
required: false
destination_ssh_private_key:
description: SSH key used to authenticate with destination ssh url provided (optional if public or https url with authentication)
required: false
github_token:
description: GitHub token secret
required: false
runs:
using: 'docker'
image: 'Dockerfile'
env:
GITHUB_TOKEN: "${{ inputs.github_token }}"
SSH_PRIVATE_KEY: "${{ inputs.ssh_private_key }}"
UPSTREAM_SSH_PRIVATE_KEY: "${{ inputs.source_ssh_private_key }}"
DESTINATION_SSH_PRIVATE_KEY: "${{ inputs.destination_ssh_private_key }}"
args:
- "${{ inputs.destination_repo }}"
- "${{ inputs.source_repo }}"