-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
59 lines (48 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
55
56
57
58
59
name: 'Rebase pull requests'
description: 'Rebase pull requests in a repository'
inputs:
token:
description: 'GitHub token to use. If passed, takes precedence over the `app-id` and `app-private-key` inputs.'
app-id:
description: 'The app ID of the app.'
private-key:
description: 'The private key of the app.'
repository:
description: 'The target GitHub repository'
default: ${{ github.repository }}
head:
default: '${{ github.repository_owner }}:*'
description: >
Filter pull requests by head user or head organization and branch name in the format user:ref-name or organization:ref-name.
For example: github:new-script-format or octocat:test-branch.
base:
description: >
Filter pull requests by base branch name.
Example: gh-pages.
include-labels:
description: >
A comma or newline separated list of pull request labels to include.
Allows any labels if unspecified.
exclude-labels:
description: 'A comma or newline separated list of pull request labels to exclude'
exclude-drafts:
description: 'Exclude draft pull requests'
default: 'false'
runs:
using: 'composite'
steps:
- uses: myparcelnl/actions/get-github-token@v4
id: token
with:
token: ${{ inputs.token }}
app-id: ${{ inputs.app-id }}
private-key: ${{ inputs.private-key }}
- uses: peter-evans/rebase@v3
with:
token: ${{ steps.token.outputs.token }}
repository: ${{ inputs.repository }}
head: ${{ inputs.head }}
base: ${{ inputs.base }}
include-labels: ${{ inputs.include-labels }}
exclude-labels: ${{ inputs.exclude-labels }}
exclude-drafts: ${{ inputs.exclude-drafts }}