forked from dmnemec/copy_file_to_another_repo_action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
62 lines (62 loc) · 1.8 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
name: 'Push a file to another repository'
description: 'Used for pushing a copy of a file to another repository'
inputs:
source_file:
description: 'Source file from the origin directory'
required: true
destination_repo:
description: 'Destination repository'
required: true
destination_folder:
description: 'Directory to push the file to'
required: false
user_email:
description: 'Email for the git commit'
required: true
user_name:
description: 'GitHub username for the commit'
required: true
destination_branch:
description: 'branch to push file to, defaults to main'
required: false
destination_branch_create:
description: 'Destination branch to create for this commit'
required: false
commit_message:
description: 'A custom message for the commit'
required: false
rename:
description: 'Rename the destination file'
required: false
use_rsync:
description: 'Copy files/directories using rsync instead of cp. Experimental feature, please know your use case'
required: false
git_server:
description: 'Git server host, default github.com'
required: false
default: github.com
pull_flags:
description: 'Flags to pass to git pull'
required: false
default: --rebase
retry_count:
description: 'Number of times to retry pull+push'
required: false
default: "3"
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.source-file }}
- ${{ inputs.destination-repo }}
- ${{ inputs.destination-folder }}
- ${{ inputs.user-email }}
- ${{ inputs.destination-branch }}
- ${{ inputs.destination-branch-create }}
- ${{ inputs.commit-message }}
- ${{ inputs.git-server }}
- ${{ inputs.rename }}
- ${{ inputs.use-rsync }}
branding:
icon: 'git-commit'
color: 'green'