This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yml
91 lines (77 loc) · 3.38 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
name: autoupdate-fork-action
description: Autoupdates fork branches with pull requests on changes to specified upstream branches.
author: 'Ashish Padhy'
branding:
icon: 'git-merge'
color: 'blue'
inputs:
github_token:
description: >
Token used to authenticate with the GitHub API. It should belong to a user with write/maintain permissions to the repository. It also must have "repo" and "workflow" scopes so it can push to repo and edit workflows.
It can also be the default GitHub Actions token GITHUB_TOKEN if it has write/maintain permissions to the repository.
Provide token of the user that has rights to push to the repos that this action is suppose to update. Suggestions: Create a bot user and give it write access to the repos.
required: true
base_branches:
description: >
The comma-separated list of base branches on which pull requests should be updated.
required: false
default: 'master, main'
pr_filter:
description: >
Controls how autoupdate chooses which pull requests to operate on.
- all: Operate on all pull requests.
- labelled: Operate on pull requests with the specified label. If no label is specified, the default label is autoupdate.
- base: Operate on pull requests with the specified base branch.
- protected: Operate on pull requests on protected branches.
- auto_merge: Operate on pull requests with auto merge enabled.
required: false
default: 'all'
pr_label:
description: >
The comma-separated list of labels to filter pull requests by. Only used when pr_filter is labeled.
required: false
default: 'autoupdate'
exclude_pr_label:
description: >
The comma-separated list of labels to exclude pull requests by. Works with any pr_filter.
required: false
default: ''
merge_fail_action:
description: >
Controls how autoupdate handles errors during the merge operation.
- fail: Fail the whole workflows.
- ignore: Ignore the errors and continue.
- comment: Comment on the pull request with a message about the merge fail.
required: false
default: 'comment'
merge_method:
description: >
Controls how autoupdate updates the pull request.
- merge: Merge the head branch into the base branch.
- squash: Squash the head branch into a single commit on the base branch.
- rebase: Rebase the head branch onto the base branch.
required: false
deprecationMessage: 'Not supported yet. Will be supported in future releases.'
default: 'merge'
merge_commit_message:
description: >
The commit message to use when merging the head branch into the base branch. Only used when merge_method is merge.
required: false
deprecationMessage: 'Not supported yet. Will be supported in future releases.'
ignore_conflicts:
description: Boolean value to ignore merge requests with conflicts.
required: false
default: "true"
outputs:
merge_status:
description: >
The status of the merge operations. Returns success if all merges were successful, otherwise returns failure.
merge_fail_nodes:
description: >
The list of nodes that failed to merge. Returns empty if all merges were successful.
merge_success_nodes:
description: >
The list of nodes that were successfully merged. Returns empty if all merges failed.
runs:
using: node20
main: dist/index.js