forked from cpina/github-action-push-to-another-repository
-
Notifications
You must be signed in to change notification settings - Fork 19
/
action.yml
46 lines (46 loc) · 1.61 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
38
39
40
41
42
43
44
45
46
name: 'Copy files to another repository'
description: 'Copy and push files from current repository to another repository.'
inputs:
source-files:
description: 'The files/directories to copy to the destination repository. Can have multiple space-separated filenames and globbing.'
required: true
destination-username:
description: 'Name of the destination username/organization'
required: true
destination-repository:
description: 'Name of the destination repository'
required: true
destination-branch:
description: '[Optional] set target branch name for the destination repository.'
default: 'master'
required: false
destination-directory:
description: '[Opitonal] Directory to copy files into in the destination repository'
required: false
default: '.'
commit-username:
description: '[Optional] Username for the commit. Defaults to the destination username'
required: false
default: ''
commit-email:
description: 'Email for the commit'
required: true
commit-message:
description: '[Optional] commit message for the output repository. ORIGIN_COMMIT is replaced by the URL@commit in the origin repo'
default: 'Update from ORIGIN_COMMIT'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.source-files }}
- ${{ inputs.destination-username }}
- ${{ inputs.destination-repository }}
- ${{ inputs.destination-branch }}
- ${{ inputs.destination-directory }}
- ${{ inputs.commit-username }}
- ${{ inputs.commit-email }}
- ${{ inputs.commit-message }}
branding:
icon: 'git-commit'
color: 'green'