Support requirements.txt for version-file (#68)

This commit is contained in:
Dave Johansen
2025-02-06 09:41:44 -07:00
committed by GitHub
parent f173943ec8
commit d8f577dec4
5 changed files with 91 additions and 62 deletions
+2 -2
View File
@@ -124,13 +124,13 @@ to install the latest version that satisfies the range.
#### Install a version from a specified version file
You can specify a file to read the version from.
Currently `pyproject.toml` is supported.
Currently `pyproject.toml` and `requirements.txt` are supported.
```yaml
- name: Install a version from a specified version file
uses: astral-sh/ruff-action@v3
with:
version-file: "my-path/to/pyproject.toml"
version-file: "my-path/to/pyproject.toml-or-requirements.txt"
```
### Validate checksum