Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scribd/tail-action
Github Action to retrieve the last n lines of a file or string.
https://github.com/scribd/tail-action
actions
Last synced: 16 days ago
JSON representation
Github Action to retrieve the last n lines of a file or string.
- Host: GitHub
- URL: https://github.com/scribd/tail-action
- Owner: scribd
- License: mit
- Created: 2020-10-08T19:00:32.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-10T18:11:23.000Z (over 2 years ago)
- Last Synced: 2024-11-27T23:18:31.136Z (3 months ago)
- Topics: actions
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tail Action
Github Action to retrieve the last n lines of a file or string.
## Inputs
### `path`
The filepath to retrieve lines from. Must provide a path or a string..
### `string`
The string to retrieve lines from. Must provide a path or a string.
### `line-count`
The number of lines to retrieve.
## Outputs
### `content`
The retrieved lines.
## Example usage
```yaml
- uses: scribd/tail-action@v1
id: tail
with:
path: xcode-build.log- run: echo "${{ steps.tail.outputs.content }}"
```More examples [here](https://github.com/scribd/tail-action/blob/master/.github/workflows/test.yml).