https://github.com/scribd/ansi-color-strip-action
GitHub Action to remove any ANSI escaped colors from a passed in file or string.
https://github.com/scribd/ansi-color-strip-action
actions
Last synced: 2 months ago
JSON representation
GitHub Action to remove any ANSI escaped colors from a passed in file or string.
- Host: GitHub
- URL: https://github.com/scribd/ansi-color-strip-action
- Owner: scribd
- License: mit
- Created: 2020-10-16T19:59:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-02T21:59:50.000Z (almost 2 years ago)
- Last Synced: 2025-01-26T12:23:56.475Z (4 months ago)
- Topics: actions
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ANSI Color Strip Action
Github Action to remove any ANSI escaped colors from a passed in file or string.
## Inputs
### `string`
The string to retrieve lines from.
### `path`
The filepath to retrieve lines from.
### `overwrite-path`
Replace the provided filepath with the content after color removal.
## Outputs
### `content`
The content after color removal.
## Example usage
```yaml
- uses: justAnotherDev/ansi-color-strip-action@v1
id: strip
with:
path: xcode-build.log- run: echo "${{ steps.strip.outputs.content }}"
```More examples [here](https://github.com/justAnotherDev/ansi-color-strip-action/blob/master/.github/workflows/test.yml).