scribd / tail-action

Github Action to retrieve the last n lines of a file or string.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

- uses: scribd/tail-action@v1
  id: tail
  with:
    path: xcode-build.log

- run: echo "${{ steps.tail.outputs.content }}"

More examples here.

About

Github Action to retrieve the last n lines of a file or string.

License:MIT License