Skip to content

Commit

Permalink
feat: add support for multiple branches update (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg authored Mar 21, 2022
1 parent d3de121 commit 525fabf
Show file tree
Hide file tree
Showing 11 changed files with 11,088 additions and 2,802 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
clones
clones
.DS_Store
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ repos_to_ignore | Comma-separated list of repositories that should not get updat
topics_to_include | Comma-separated list of topics that should get updates from this action. Repos that do not contain one of the specified topics will get appended to the repos_to_ignore list. In the format `topic1,topic2`. | false | -
exclude_private | Boolean value on whether to exclude private repositories from this action. | false | false
exclude_forked | Boolean value on whether to exclude forked repositories from this action. | false | false
branches | By default, action creates branch from default branch and opens PR only against default branch. With this property you can override this behaviour. You can provide a comma-separated list of branches this action shoudl work against. You can also provide regex, but without comma as list of branches is split in code by comma. | false | default branch is used

## Examples

Expand Down Expand Up @@ -120,6 +121,7 @@ jobs:
topics_to_include: topic1,topic2
exclude_private: true
exclude_forked: true
branches: .*-release,main
committer_username: santiago-bernabeu
committer_email: [email protected]
commit_message: "ci: update global workflows"
Expand Down
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ inputs:
Boolean value on whether to exclude forked repositories from this action.
default: false
required: false
branches:
description: >
By default, action creates branch from default branch and opens PR only against default branch.
With this property you can override this behaviour. You can provide a comma-separated list of branches this action shoudl work agains.
You can also provide regex, but without comma as list of branches is split in code by comma.
required: false
runs:
using: node12
main: dist/index.js
Expand Down
Loading

0 comments on commit 525fabf

Please sign in to comment.