Skip to content

Commit 7f78e88

Browse files
authored
Use v4.0.0 in README.md (#371)
This change should reduce confusion from `@4` not working.
1 parent 8c228c7 commit 7f78e88

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,21 @@ By default, Ruff version metadata is resolved from the
4343
### Basic
4444

4545
```yaml
46-
- uses: astral-sh/ruff-action@v3
46+
- uses: astral-sh/ruff-action@v4.0.0
4747
```
4848
4949
### Specify a different source directory
5050
5151
```yaml
52-
- uses: astral-sh/ruff-action@v3
52+
- uses: astral-sh/ruff-action@v4.0.0
5353
with:
5454
src: "./src"
5555
```
5656
5757
### Specify multiple files
5858
5959
```yaml
60-
- uses: astral-sh/ruff-action@v3
60+
- uses: astral-sh/ruff-action@v4.0.0
6161
with:
6262
src: >-
6363
path/to/file1.py
@@ -69,7 +69,7 @@ By default, Ruff version metadata is resolved from the
6969
This action adds ruff to the PATH, so you can use it in subsequent steps.
7070
7171
```yaml
72-
- uses: astral-sh/ruff-action@v3
72+
- uses: astral-sh/ruff-action@v4.0.0
7373
- run: ruff check --fix
7474
- run: ruff format
7575
```
@@ -80,15 +80,15 @@ you can use the `args` input to overwrite the default value (`check`):
8080

8181
```yaml
8282
- name: Install ruff without running check or format
83-
uses: astral-sh/ruff-action@v3
83+
uses: astral-sh/ruff-action@v4.0.0
8484
with:
8585
args: "--version"
8686
```
8787

8888
### Use `ruff format`
8989

9090
```yaml
91-
- uses: astral-sh/ruff-action@v3
91+
- uses: astral-sh/ruff-action@v4.0.0
9292
with:
9393
args: "format --check --diff"
9494
```
@@ -107,7 +107,7 @@ or no Ruff version is defined in `project.dependencies`, `project.optional-depen
107107

108108
```yaml
109109
- name: Install the latest version of ruff
110-
uses: astral-sh/ruff-action@v3
110+
uses: astral-sh/ruff-action@v4.0.0
111111
with:
112112
version: "latest"
113113
```
@@ -116,7 +116,7 @@ or no Ruff version is defined in `project.dependencies`, `project.optional-depen
116116

117117
```yaml
118118
- name: Install a specific version of ruff
119-
uses: astral-sh/ruff-action@v3
119+
uses: astral-sh/ruff-action@v4.0.0
120120
with:
121121
version: "0.4.4"
122122
```
@@ -129,21 +129,21 @@ to install the latest version that satisfies the range.
129129

130130
```yaml
131131
- name: Install a semver range of ruff
132-
uses: astral-sh/ruff-action@v3
132+
uses: astral-sh/ruff-action@v4.0.0
133133
with:
134134
version: ">=0.4.0"
135135
```
136136

137137
```yaml
138138
- name: Pinning a minor version of ruff
139-
uses: astral-sh/ruff-action@v3
139+
uses: astral-sh/ruff-action@v4.0.0
140140
with:
141141
version: "0.4.x"
142142
```
143143

144144
```yaml
145145
- name: Install a pep440-specifier-satisfying version of ruff
146-
uses: astral-sh/ruff-action@v3
146+
uses: astral-sh/ruff-action@v4.0.0
147147
with:
148148
version: ">=0.11.10,<0.12.0"
149149
```
@@ -156,7 +156,7 @@ or does not contain a Ruff version, the action warns and falls back to `latest`.
156156

157157
```yaml
158158
- name: Install a version from a specified version file
159-
uses: astral-sh/ruff-action@v3
159+
uses: astral-sh/ruff-action@v4.0.0
160160
with:
161161
version-file: "my-path/to/pyproject.toml-or-requirements.txt"
162162
```
@@ -175,7 +175,7 @@ This affects both version resolution and artifact selection.
175175

176176
```yaml
177177
- name: Install Ruff from a custom manifest
178-
uses: astral-sh/ruff-action@v3
178+
uses: astral-sh/ruff-action@v4.0.0
179179
with:
180180
version: "latest"
181181
manifest-file: "https://example.com/ruff.ndjson"
@@ -189,7 +189,7 @@ are automatically verified by this action. The sha256 hashes can be found on the
189189

190190
```yaml
191191
- name: Install a specific version and validate the checksum
192-
uses: astral-sh/ruff-action@v3
192+
uses: astral-sh/ruff-action@v4.0.0
193193
with:
194194
version: "0.7.4"
195195
checksum: "0de731c669b9ece77e799ac3f4a160c30849752714d9775c94cc4cfaf326860c"
@@ -209,7 +209,7 @@ are not sufficient, you can provide a custom GitHub token with the necessary per
209209

210210
```yaml
211211
- name: Install the latest version of ruff with a custom GitHub token
212-
uses: astral-sh/ruff-action@v3
212+
uses: astral-sh/ruff-action@v4.0.0
213213
with:
214214
github-token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
215215
```

0 commit comments

Comments
 (0)