forked from paygoc6/action-pull-request-another-repo
-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
53 lines (53 loc) · 1.7 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
name: 'Create Pull Request for 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
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
title:
description: 'The title of the pull request'
required: false
default: "Update from ${{ github.ref }}"
body:
description: 'The body of the pull request'
required: false
default: "This is an automated pull request by [haiiliin/action-pull-request-another-repo](https://github.com/haiiliin/action-pull-request-another-repo)."
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.title }}
- ${{ inputs.body }}
branding:
icon: 'git-commit'
color: 'green'