Skip to content

Commit 5c6d6d8

Browse files
committed
bump version in readme
1 parent 6eba12c commit 5c6d6d8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
Automatically approve GitHub pull requests.
88

9-
**Important:** use v3 or later, as v2 uses Node.js 12, which is deprecated. If you're on an old version of GHES (earlier than 3.4) you may need to use v2 until you can upgrade. v1 was designed for the initial GitHub Actions beta, and no longer works.
9+
**Important:** use v4 or later, as earlier versions use deprecated versions of node. If you're on an old version of GHES (with an old version of the node interpreter) you may need to use an easier version until you can upgrade.
1010

1111
## Usage instructions
1212

13-
Create a workflow file (e.g. `.github/workflows/auto-approve.yml`) that contains a step that `uses: hmarr/auto-approve-action@v3`. Here's an example workflow file:
13+
Create a workflow file (e.g. `.github/workflows/auto-approve.yml`) that contains a step that `uses: hmarr/auto-approve-action@v4`. Here's an example workflow file:
1414

1515
```yaml
1616
name: Auto approve
@@ -22,7 +22,7 @@ jobs:
2222
permissions:
2323
pull-requests: write
2424
steps:
25-
- uses: hmarr/auto-approve-action@v3
25+
- uses: hmarr/auto-approve-action@v4
2626
```
2727
2828
Combine with an `if` clause to only auto-approve certain users. For example, to auto-approve [Dependabot][dependabot] pull requests, use:
@@ -39,7 +39,7 @@ jobs:
3939
pull-requests: write
4040
if: github.actor == 'dependabot[bot]'
4141
steps:
42-
- uses: hmarr/auto-approve-action@v3
42+
- uses: hmarr/auto-approve-action@v4
4343
```
4444

4545
If you want to use this action from a workflow file that doesn't run on the `pull_request` or `pull_request_target` events, use the `pull-request-number` input:
@@ -60,7 +60,7 @@ jobs:
6060
permissions:
6161
pull-requests: write
6262
steps:
63-
- uses: hmarr/auto-approve-action@v3
63+
- uses: hmarr/auto-approve-action@v4
6464
with:
6565
pull-request-number: ${{ github.event.inputs.pullRequestNumber }}
6666
```
@@ -79,7 +79,7 @@ jobs:
7979
pull-requests: write
8080
if: github.actor == 'dependabot[bot]'
8181
steps:
82-
- uses: hmarr/auto-approve-action@v3
82+
- uses: hmarr/auto-approve-action@v4
8383
with:
8484
review-message: "Auto approved automated PR"
8585
```
@@ -99,7 +99,7 @@ jobs:
9999
auto-approve:
100100
runs-on: ubuntu-latest
101101
steps:
102-
- uses: hmarr/auto-approve-action@v3
102+
- uses: hmarr/auto-approve-action@v4
103103
with:
104104
github-token: ${{ secrets.SOME_USERS_PAT }}
105105
```
@@ -122,4 +122,4 @@ If you're using a [CODEOWNERS file](https://docs.github.com/en/github/creating-c
122122

123123
## Development and release process
124124

125-
Each major version corresponds to a branch (e.g. `v2`, `v3`). The latest major version (`v3` at the time of writing) is the repository's default branch. Releases are tagged with semver-style version numbers (e.g. `v1.2.3`).
125+
Each major version corresponds to a branch (e.g. `v3`, `v4`). The latest major version (`v4` at the time of writing) is the repository's default branch. Releases are tagged with semver-style version numbers (e.g. `v1.2.3`).

0 commit comments

Comments
 (0)