mirror of
https://github.com/egor-tensin/cleanup-path.git
synced 2025-05-01 00:59:32 +03:00
README: update
This commit is contained in:
parent
3afb582576
commit
25f4108112
1 changed files with 6 additions and 3 deletions
|
@ -3,10 +3,13 @@ Clean up PATH
|
||||||
|
|
||||||
[](https://github.com/egor-tensin/cleanup-path/actions/workflows/test.yml)
|
[](https://github.com/egor-tensin/cleanup-path/actions/workflows/test.yml)
|
||||||
|
|
||||||
|
This GitHub action cleans up the PATH variable.
|
||||||
|
|
||||||
The PATH variable on Windows runners is a cesspool.
|
The PATH variable on Windows runners is a cesspool.
|
||||||
For example, it includes seemingly dozens of MinGW distributions.
|
For example, it includes seemingly dozens of MinGW distributions.
|
||||||
This action takes a page out of MSYS2's book here, and cleans PATH so that only
|
This action takes a page out of MSYS2's book here, and cleans PATH so that only
|
||||||
the default paths are included.
|
the default paths are included.
|
||||||
|
|
||||||
Use it in your workflow like this:
|
Use it in your workflow like this:
|
||||||
|
|
||||||
- name: Clean up PATH
|
- name: Clean up PATH
|
||||||
|
@ -22,10 +25,10 @@ API
|
||||||
|
|
||||||
| Input | Value | Default | Description
|
| Input | Value | Default | Description
|
||||||
| ------- | ------- | ------- | -----------
|
| ------- | ------- | ------- | -----------
|
||||||
| dirs | *Empty* | ✓ | No additional paths.
|
| dirs | *empty* | ✓ | No additional paths.
|
||||||
| | *Other* | | Additional paths, separated by a semicolon (;).
|
| | *any* | | Additional paths, separated by a semicolon (;).
|
||||||
| default | 1 | ✓ | Add the default directories under C:\Windows.
|
| default | 1 | ✓ | Add the default directories under C:\Windows.
|
||||||
| | *Other* | | Don't add the default directories.
|
| | *any* | | Don't add the default directories.
|
||||||
|
|
||||||
The action sets the PATH environment variable.
|
The action sets the PATH environment variable.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue