-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
action.yml
110 lines (106 loc) · 3.47 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: 'Repo File Sync Action'
description: 'GitHub Action to Sync Files like Workflows Between Repositories.'
author: 'BetaHuhn'
inputs:
GH_PAT:
description: |
GitHub Personal Access Token to use to get repos and write secrets
required: false
GH_INSTALLATION_TOKEN:
description: |
GitHub App Installation Token to used to access repos
required: false
CONFIG_PATH:
description: |
The path for the sync configuration file
required: false
IS_FINE_GRAINED:
description: |
Label GH_PAT as a fine grained token
required: false
PR_LABELS:
description: |
Labels which will be added to the pull request. Defaults to sync. Set to false to turn off
required: false
PR_BODY:
description: |
Additional content to add in the PR description. Defaults to ''
required: false
ASSIGNEES:
description: |
Users to assign to the pull request. Defaults to none
required: false
REVIEWERS:
description: |
Users to request a review of the pull request from. Defaults to none
required: false
TEAM_REVIEWERS:
description: |
Teams to request a review of the pull request from. Defaults to none
required: false
COMMIT_PREFIX:
description: |
Prefix for commit message and pull request title. Defaults to 🔄
required: false
COMMIT_BODY:
description: |
Commit message body. Will be appended to commit message, separated by two line returns. Defaults to ''
required: false
COMMIT_EACH_FILE:
description: |
Commit each file seperately. Defaults to true
required: false
GIT_EMAIL:
description: |
The e-mail address used to commit the synced files. Defaults to the email of the GitHub PAT
required: false
GIT_USERNAME:
description: |
The username used to commit the synced files. Defaults to the username of the GitHub PAT
required: false
TMP_DIR:
description: |
The working directory where all sync operations will be done. Defaults to `tmp-${Date.now().toString()}`
required: false
DRY_RUN:
description: |
Run everything except for nothing will be updated. Defaults to false
required: false
SKIP_CLEANUP:
description: |
Skip removing the temporary directory (useful for debugging). Defaults to false
required: false
OVERWRITE_EXISTING_PR:
description: |
Overwrite any existing Sync PR with the new changes. Defaults to true
required: false
ORIGINAL_MESSAGE:
description: |
Re-use the original commit message for commits. Works only if the action is triggered by pushing one commit. Defaults to false
required: false
COMMIT_AS_PR_TITLE:
description: |
Re-use the commit message as PR title. Works only if ORIGINAL_MESSAGE is on and PR has one commit. Defaults to false
required: false
SKIP_PR:
description: |
Skips creating a Pull Request and pushes directly to the default branch. Defaults to false
required: false
BRANCH_PREFIX:
description: |
Specify a different prefix for the new branch in the target repo. Defaults to repo-sync/SOURCE_REPO_NAME
required: false
FORK:
description: |
Specify the user account that will be used in a fork and pull-request workflow. Defaults
false.
required: false
outputs:
pull_request_urls:
description: 'The URLs to the created Pull Requests as an array'
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'git-pull-request'
color: 'gray-dark'