mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2025-03-13 02:05:35 +00:00
Improve Example
This commit is contained in:
parent
bbd291750d
commit
7cec9acee6
21
README.md
21
README.md
@ -19,13 +19,22 @@ This Action has been inspired and adapted from the [auto-commit](https://github.
|
|||||||
|
|
||||||
Add the following step at the end of your job, after other steps that might add or change files.
|
Add the following step at the end of your job, after other steps that might add or change files.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
This is a more extended example with all possible options.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
with:
|
with:
|
||||||
# Optional but recommended, defaults to "Apply automatic changes"
|
# Optional but recommended
|
||||||
|
# Defaults to "Apply automatic changes"
|
||||||
commit_message: Apply automatic changes
|
commit_message: Apply automatic changes
|
||||||
|
|
||||||
# Optional branch to push to, defaults to the current branch
|
# Optional branch name where commit should be pushed to
|
||||||
|
# Defaults to the current branch
|
||||||
branch: feature-123
|
branch: feature-123
|
||||||
|
|
||||||
# Optional options appended to `git-commit`
|
# Optional options appended to `git-commit`
|
||||||
@ -33,18 +42,20 @@ Add the following step at the end of your job, after other steps that might add
|
|||||||
commit_options: '--no-verify --signoff'
|
commit_options: '--no-verify --signoff'
|
||||||
|
|
||||||
# Optional glob pattern of files which should be added to the commit
|
# Optional glob pattern of files which should be added to the commit
|
||||||
|
# Defaults to all (.)
|
||||||
# See the `pathspec`-documentation for git
|
# See the `pathspec`-documentation for git
|
||||||
# - https://git-scm.com/docs/git-add#Documentation/git-add.txt-ltpathspecgt82308203
|
# - https://git-scm.com/docs/git-add#Documentation/git-add.txt-ltpathspecgt82308203
|
||||||
# - https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec
|
# - https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec
|
||||||
file_pattern: src/*.js tests/*.js *.php
|
file_pattern: src/*.js tests/*.js *.php
|
||||||
|
|
||||||
# Optional local file path to the repository
|
# Optional local file path to the repository
|
||||||
|
# Defaults to the root of the repository
|
||||||
repository: .
|
repository: .
|
||||||
|
|
||||||
# Optional commit user and author settings
|
# Optional commit user and author settings
|
||||||
commit_user_name: My GitHub Actions Bot
|
commit_user_name: My GitHub Actions Bot # defaults to "GitHub Actions"
|
||||||
commit_user_email: my-github-actions-bot@example.org
|
commit_user_email: my-github-actions-bot@example.org # defaults to "actions@github.com"
|
||||||
commit_author: Author <actions@github.com>
|
commit_author: Author <actions@github.com> # defaults to author of the commit that triggered the run
|
||||||
|
|
||||||
# Optional tag message
|
# Optional tag message
|
||||||
# Action will create and push a new tag to the remote repository and the defined branch
|
# Action will create and push a new tag to the remote repository and the defined branch
|
||||||
|
Loading…
Reference in New Issue
Block a user