Skip to content

Commit 602bf4e

Browse files
committed
Final adjustments for v4
1 parent 5148cf0 commit 602bf4e

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This action lets you choose the path that you want to use when adding & committi
1010
Add a step like this to your workflow:
1111

1212
```yaml
13-
- uses: EndBug/add-and-commit@v2 # You can change this to use a specific version
13+
- uses: EndBug/add-and-commit@v4 # You can change this to use a specific version
1414
with:
1515
# The arguments for the git add command (see the paragraph below for more info)
1616
# Default: '.'
@@ -53,10 +53,12 @@ With that said, you can just copy the example line and don't worry about it. If
5353
### Adding files:
5454

5555
The action adds files using a regular `git add` command, so you can put every kind of argument in the `add` option. For example, if you don't want it to use a recursive behavior: `$(find . -maxdepth 1 -name *.js)`
56+
The script will not stop if one the git commands fails. E.g.: if your command shows a "fatal: pathspec 'yourFile' did not match any files" error the action will go on.
5657

5758
### Deleting files:
5859

59-
You can delete files with the `remove` option: that runs a `git rm` command that will stage the files in the given path for removal. Please keep in mind that if the path is wrong the action will stop.
60+
You can delete files with the `remove` option: that runs a `git rm` command that will stage the files in the given path for removal.
61+
The script will not stop if one the git commands fails. E.g.: if your command shows a "fatal: pathspec 'yourFile' did not match any files" error the action will go on.
6062

6163
### Examples:
6264

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Add & Commit
22
description: Add & commit files from a path directly from GitHub Actions
33

44
inputs:
5+
add:
6+
description: Arguments for the git add command
7+
required: false
8+
default: "."
59
author_name:
610
description: The name of the user that will be displayed as the author of the commit
711
required: false
@@ -20,10 +24,6 @@ inputs:
2024
description: The message for the commit
2125
required: false
2226
default: Commit from GitHub Actions
23-
add:
24-
description: Arguments for the git add command
25-
required: false
26-
default: "."
2727
remove:
2828
description: Arguments for the git rm command
2929
required: false

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)