-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
54 lines (49 loc) · 1.71 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
name: Sync branches
author: Thibault Derousseaux <[email protected]>
description: Automatically merge a repository branch into other branches to keep them in sync.
inputs:
body_template:
description: >
Lodash template for the syncing PR's body.
The data properties are:
- base: syncing PR's base branch
- head: branch to merge into `base`.
default: "Sync `<%= base %>` with `<%= head %>`."
branches_pattern:
description: >
Branches matching this `minimatch` pattern will be synced with the branch from which this action is run.
If empty, all the protected branches will be synced.
default: ""
github_token:
description: Token for the GitHub API.
default: ${{ github.token }}
head_template:
description: >
Lodash template for the syncing PR's head branch.
The data properties are:
- base: syncing PR's base branch
- head: branch to merge into `base`.
default: "sync-<%= base %>-with-<%= head %>"
labels_template:
description: >
Lodash template compiling to a JSON array of labels to add to the syncing PR.
The data properties are:
- base: syncing PR's base branch
- head: branch to merge into `base`.
default: "[]"
title_template:
description: >
Lodash template for the syncing PR's title.
The data properties are:
- base: syncing PR's base branch
- head: branch to merge into `base`.
default: "Sync `<%= base %>` with `<%= head %>`"
outputs:
created_pull_requests:
description: A JSON stringified object mapping the base branch of the created pull requests to their number.
runs:
using: node16
main: dist/index.js
branding:
icon: git-merge
color: purple