-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
39 lines (39 loc) · 987 Bytes
/
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
38
39
# action.yml
name: 'Sync Repo'
description: 'Sync github repository with non-github repo'
inputs:
src_repo:
description: Non-github repo to pull
required: true
src_branch:
description: Branch name of source repo to pull
required: false
default: 'master'
dest_repo:
description: github repo to sync
required: true
dest_branch:
description: Branch name of destination repo to sync
required: false
default: 'master'
for_upstream_branch:
description: Name of upstream branch
required: false
default: 'none'
secret_token:
description: Secret token for destination repo
required: true
runs:
using: 'docker'
image: 'Dockerfile'
env:
SECRET_TOKEN: ${{ inputs.secret_token }}
FOR_UPSTREAM_BRANCH: ${{ inputs.for_upstream_branch }}
args:
- ${{ inputs.src_repo }}
- ${{ inputs.src_branch }}
- ${{ inputs.dest_repo }}
- ${{ inputs.dest_branch }}
branding:
icon: 'git-merge'
color: '#0082FC'