Update references to astral-sh/ruff-action from v2 to v3 (#15212)

This commit is contained in:
Christian Clauss
2024-12-31 16:43:17 +01:00
committed by GitHub
parent 32de5801f7
commit 7ca3f9515c
2 changed files with 4 additions and 4 deletions

View File

@@ -46,13 +46,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v2
- uses: astral-sh/ruff-action@v3
```
Alternatively, you can include `ruff-action` as a step in any other workflow file:
```yaml
- uses: astral-sh/ruff-action@v2
- uses: astral-sh/ruff-action@v3
```
`ruff-action` accepts optional configuration parameters via `with:`, including:
@@ -64,7 +64,7 @@ Alternatively, you can include `ruff-action` as a step in any other workflow fil
For example, to run `ruff check --select B ./src` using Ruff version `0.8.0`:
```yaml
- uses: astral-sh/ruff-action@v2
- uses: astral-sh/ruff-action@v3
with:
version: 0.8.0
args: check --select B