-
Notifications
You must be signed in to change notification settings - Fork 37
/
action.yml
80 lines (80 loc) · 2.41 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: 'Copycat Action'
description: 'GitHub Action for copying files to other repositories'
author: 'André Storhaug'
branding:
icon: 'copy'
color: 'red'
inputs:
personal_token:
description: 'Personal access token'
required: true
src_path:
description: 'The source path to the file(s) or folder(s) to copy from'
required: true
dst_path:
description: 'The destination path to copy the file(s) or folder(s) to'
required: false
dst_owner:
description: 'The name of the owner of the repository to push to'
required: true
dst_repo_name:
description: 'The name of the repository to push to'
required: true
src_branch:
description: 'The branch name of the source repository'
required: false
default: 'master'
dst_branch:
description: 'The branch name of the destination repository'
required: false
default: 'master'
clean:
description: 'Set to true if the dst_path should be emptied before copying'
default: false
required: false
file_filter:
description: 'A glob pattern for filtering file names'
required: false
filter:
description: 'A glob pattern for filtering file paths to be included for copying'
required: false
exclude:
description: 'A glob pattern for excluding paths'
required: false
src_wiki:
description: 'Set to true if the source repository you want to copy from is the GitHub Wiki'
default: false
required: false
dst_wiki:
description: 'Set to true if the destination repository you want to copy from is the GitHub Wiki'
required: false
default: false
commit_message:
description: 'A custom git commit message.'
required: false
username:
description: 'The GitHub username to associate commits made by this GitHub action'
required: false
email:
description: 'The email used for associating commits made by this GitHub action'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.personal_token }}
- ${{ inputs.src_path }}
- ${{ inputs.dst_path }}
- ${{ inputs.dst_owner }}
- ${{ inputs.dst_repo_name }}
- ${{ inputs.src_branch }}
- ${{ inputs.dst_branch }}
- ${{ inputs.clean }}
- ${{ inputs.file_filter }}
- ${{ inputs.filter }}
- ${{ inputs.exclude }}
- ${{ inputs.src_wiki }}
- ${{ inputs.dst_wiki }}
- ${{ inputs.commit_message }}
- ${{ inputs.username }}
- ${{ inputs.email }}