update README.md

This commit is contained in:
Авдеев Дима 2021-12-08 15:33:59 +03:00 committed by GitHub
parent aadca79904
commit 2d4e9657d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,6 +123,20 @@ To use this strategy, set input `branch-suffix` with one of the following option
- `short-commit-hash` - Commits will be made to a branch suffixed with the short SHA1 commit hash. e.g. `create-pull-request/patch-fcdfb59`, `create-pull-request/patch-394710b`
### Controlling committed files
You may control files to added on pull request with argument `add-pattern-array`.
It specify `git add` pattern of files. By example:
```yml
...
uses: peter-evans/create-pull-request@main #TODO put next version here
with:
add-pattern-array: |
**.txt
**some/dirs**.png
token: ${{ secrets.GITHUB_TOKEN }}
```
### Controlling commits
As well as relying on the action to handle uncommitted changes, you can additionally make your own commits before the action runs.