forked from nkoppel/push-files-to-another-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
46 lines (46 loc) · 1.63 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: 'Files to be pushed to the destination repository. Accepts multiple filenames and globbing.'
required: true
destination-github-username:
description: 'Name of the destination username/organization'
required: true
destination-repository-name:
description: 'Destination repository'
required: true
user-email:
description: 'Email for the git commit'
required: true
destination-directory:
description: '[Opitonal] Directory to copy files into in the destination repository'
required: false
default: '.'
destination-repository-username:
description: '[Optional] Username/organization for the destination repository'
required: false
default: ''
target-branch:
description: '[Optional] set target branch name for the destination repository. Defaults to "master"'
default: 'master'
required: false
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-github-username }}
- ${{ inputs.destination-repository-name }}
- ${{ inputs.destination-directory }}
- ${{ inputs.user-email }}
- ${{ inputs.destination-repository-username }}
- ${{ inputs.target-branch }}
- ${{ inputs.commit-message }}
branding:
icon: 'git-commit'
color: 'green'