forked from dmnemec/copy_file_to_another_repo_action
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathaction.yml
41 lines (41 loc) · 1.18 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
name: 'Push a folder to another repository'
description: 'Used for pushing a copy of a folder to another repository'
inputs:
source_folder:
description: 'Source folder from the origin directory'
required: true
destination_repo:
description: 'Destination repository'
required: true
destination_folder:
description: 'Directory to push the folder contents 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 folder to, defaults to master'
required: false
commit_msg:
description: 'The commit message'
required: false
destination_branch_create:
description: 'Destination branch to create for this commit'
required: false
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_msg }}
branding:
icon: 'git-commit'
color: 'green'