Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
81 lines (80 loc) · 2.77 KB
/
Copy pathaction.yml
File metadata and controls
81 lines (80 loc) · 2.77 KB
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
81
name: Repo Sync with glob
description: >-
Useful to push files to another repository to be used, for example, via github
pages
inputs:
source-before-directory:
description: Source before directory from the origin directory
required: false
source-directory:
description: '[Optional] Source directory from the origin directory. Defaults to "."'
required: false
default: '.'
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
github-server:
description: 'Github server'
default: 'github.com'
required: false
user-name:
description: >-
[Optional] Name for the git commit. Defaults to the destination
username/organization name
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 "main"
default: main
required: false
commit-message:
description: >-
[Optional] commit message for the output repository. If left empty, it will automatically prepend "[sync] " to the upstream's title, include the original body, and append the upstream commit URL. Use ORIGIN_COMMIT as a placeholder for the github url if you use a custom message.
default: ''
required: false
target-directory:
description: '[Optional] The directory to wipe and replace in the target repository, split with space. All repo need to have the same owner'
default: ''
required: false
include-patterns-file:
description: '[Optional] File containing glob patterns of files to include in the sync (like a reverse gitignore)'
default: ''
required: false
create-target-branch-if-needed:
type: boolean
description: >-
[Optional] create target branch if not exist. Defaults to `false`
default: false
required: false
runs:
using: docker
image: Dockerfile
args:
- '${{ inputs.source-before-directory }}'
- '${{ inputs.source-directory }}'
- '${{ inputs.destination-github-username }}'
- '${{ inputs.destination-repository-name }}'
- '${{ inputs.github-server }}'
- '${{ inputs.user-email }}'
- '${{ inputs.user-name }}'
- '${{ inputs.destination-repository-username }}'
- '${{ inputs.target-branch }}'
- '${{ inputs.commit-message }}'
- '${{ inputs.target-directory }}'
- '${{ inputs.create-target-branch-if-needed }}'
- '${{ inputs.include-patterns-file }}'
branding:
icon: git-commit
color: green