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: about 1 month 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 (about 2 years ago)
- Last Synced: 2023-04-10T07:46:24.232Z (almost 2 years ago)
- Topics: actions
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- 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).