-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
46 lines (45 loc) · 1.56 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
name: 'Copy-PR Action'
description: 'GitHub Action for copying files to another repository and raising a PR'
inputs:
destination_repo:
description: 'The name of the destination repository.'
required: true
destination_owner:
description: 'Destination owner'
required: true
source_directory:
description: 'The location of the files in the source repository that you want to include in the pull request. Defaults to "/.".'
required: false
default: "/."
destination_directory:
description: 'Directory where the source directory is copied to. Defaults to {source_directory}.'
required: false
destination_base_branch:
description: 'The branch into which you want your code merged.'
required: false
default: "main"
user_email:
description: 'Email for the git commit. Defaults to {user_name}@users.noreply.github.com'
required: false
user_name:
description: 'GitHub username for the commit. Defaults to user triggering the action.'
required: false
files_to_remove_path:
description: 'Relative file path including list of files to not include in PR.'
required: false
default: ".github/workflows/ci_ignore.txt"
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.destination_repo }}
- ${{ inputs.destination_owner }}
- ${{ inputs.source_directory }}
- ${{ inputs.destination_directory }}
- ${{ inputs.destination_base_branch }}
- ${{ inputs.user_email }}
- ${{ inputs.user_name }}
- ${{ inputs.files_to_remove_path }}
branding:
icon: 'git-commit'
color: 'green'