Skip to content

Commit 2db7572

Browse files
authored
Merge pull request #26 from jsoref/grammar
Improve grammar and formatting in README
2 parents d1cfc16 + 68d0f64 commit 2db7572

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Add & Commit
22

3-
You can use this GitHub Action to commit changes made in your workflow run directly to your repo: for example, you use it to lint your code, update documentation, commit updated builds and so on...
3+
You can use this GitHub Action to commit changes made in your workflow run directly to your repo: for example, you use it to lint your code, update documentation, commit updated builds, etc....
44

55
This is **heavily** inspired by [git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) (by [Stefan Zweifel](https://github.com/stefanzweifel)): that action automatically detects changed files and commits them. While this is useful for most situations, this doesn't commit untracked files and can sometimes commit unintended changes (such as `package-lock.json` or similar, that may have happened during previous steps).
6-
This action lets you choose the path that you want to use when adding & committing changes, so that it works as you would normally do using `git` on your machine.
6+
This action lets you choose the path that you want to use when adding & committing changes so that it works as you would normally do using `git` on your machine.
77

88
## Usage
99

@@ -12,31 +12,31 @@ Add a step like this to your workflow:
1212
```yaml
1313
- uses: EndBug/add-and-commit@v4 # You can change this to use a specific version
1414
with:
15-
# The arguments for the git add command (see the paragraph below for more info)
15+
# The arguments for the `git add` command (see the paragraph below for more info)
1616
# Default: '.'
1717
add: 'src'
1818

1919
# The name of the user that will be displayed as the author of the commit
2020
# Default: author of the commit that triggered the run
2121
author_name: Your Name
2222

23-
# The The email of the user that will be displayed as the author of the commit
23+
# The email of the user that will be displayed as the author of the commit
2424
# Default: author of the commit that triggered the run
2525
author_email: [email protected]
2626

2727
# The local path to the directory where your repository is located. You should use actions/checkout first to set it up
2828
# Default: '.'
2929
cwd: './path/to/the/repo'
3030

31-
# Whether to use the --force option on git add, in order to bypass eventual gitignores
31+
# Whether to use the --force option on `git add`, in order to bypass eventual gitignores
3232
# Default: false
3333
force: true
3434

3535
# The message for the commit
3636
# Default: 'Commit from GitHub Actions'
3737
message: 'Your commit message'
3838

39-
# The arguments for the git rm command (see the paragraph below for more info)
39+
# The arguments for the `git rm` command (see the paragraph below for more info)
4040
# Default: ''
4141
remove: "./dir/old_file.js"
4242

@@ -48,17 +48,17 @@ Add a step like this to your workflow:
4848
### Environment variables:
4949
5050
The only `env` variable required is the token for the action to run: GitHub generates one automatically, but you need to pass it through `env` to make it available to actions. You can find more about `GITHUB_TOKEN` [here](https://help.github.com/en/articles/virtual-environments-for-github-actions#github_token-secret).
51-
With that said, you can just copy the example line and don't worry about it. If you do want to use a different token you can pass that in, but I wouldn't see any possible advantage in doing so.
51+
That said, you can just copy the example line and not worry about it. If you do want to use a different token you can pass that in, but I wouldn't see any possible advantage in doing so.
5252

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.
56+
The script will not stop if one of 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.
5757

5858
### Deleting files:
5959

6060
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.
61+
The script will not stop if one of 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.
6262

6363
### Examples:
6464

@@ -110,7 +110,7 @@ jobs:
110110
runs-on: ubuntu-latest
111111
112112
steps:
113-
# If you need to, you can checkout your repo to a different location
113+
# If you need to, you can check out your repo to a different location
114114
- uses: actions/checkout@v2
115115
with:
116116
path: "./pathToRepo/"

0 commit comments

Comments
 (0)