Skip to content

Commit

Permalink
Merge pull request #184 from lcollins/lcollins-patch-1
Browse files Browse the repository at this point in the history
Use checkout@v4
  • Loading branch information
lcollins authored May 7, 2024
2 parents b59fbc4 + 021e50e commit aa4a0ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Optional. Name for the check run to create. Defaults to `Checkstyle`.
Optional. Title for the check run to create. Defaults to `Checkstyle Source Code Analyzer report`.

### `token`
Optional. GitHub API access token. Defaults to `${{ github.token }}`, which is set by `actions/checkout@v2` minimally.
Optional. GitHub API access token. Defaults to `${{ github.token }}`, which is set by `actions/checkout@v4` minimally.

## Example usage

Expand All @@ -39,7 +39,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
Expand Down Expand Up @@ -80,7 +80,7 @@ As it is, there is not really a sensible way to run this action on the merge com
Even for `pull_request` events there is the possibility to checkout the pull request head instead. In order to do so, change your `checkout` action accordingly:

```yaml
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
```
Expand Down

0 comments on commit aa4a0ac

Please sign in to comment.