forked from car-on-sale/action-pull-request-another-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
51 lines (51 loc) · 1.53 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
name: 'Pull Request another repository'
description: 'Used for pull request a copy of a folder to another repository'
inputs:
source_folder:
description: 'Source folder from origin'
required: true
destination_repo:
description: 'Destination repository'
required: true
destination_folder:
description: 'Destination folder to push the origin folder'
required: false
user_email:
description: 'Email for the git commit'
required: true
user_name:
description: 'GitHub username for the commit'
required: true
destination_head_branch:
description: 'The branch to create to push the changes. Cannot be master or main'
required: true
pr_title:
description: 'The PR title which will be defined in the PR'
required: true
commit_msg:
description: 'The commit message which will be used.'
required: true
destination_base_branch:
description: 'The branch into which you want your code merged.'
required: false
default: "main"
pull_request_reviewers:
description: 'Pull request reviewers users'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.source-folder }}
- ${{ inputs.destination-repo }}
- ${{ inputs.destination-folder }}
- ${{ inputs.user-email }}
- ${{ inputs.user-name }}
- ${{ inputs.destination-head-branch }}
- ${{ inputs.destination-base-branch }}
- ${{ inputs.pull-request-reviewers }}
- ${{ inputs.commit_msg }}
- ${{ inputs.pr_title }}
branding:
icon: 'git-commit'
color: 'green'