forked from splitice/copy_file_to_another_repo_action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
44 lines (44 loc) · 1.26 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
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 master'
required: false
destination_branch_create:
description: 'Destination branch to create for this commit'
required: false
rename:
description: 'Rename the destination file'
commit_message:
description: 'A custom message for the commmit'
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.rename }}
- ${{ inputs.commit-message }}
branding:
icon: 'git-commit'
color: 'green'