Input

An iterable.

Output

The last item of the iterable.

Example

actions:
  - name: keep-slack
    foreach: "{{steps.this.results}}"
    condition:
      - type: threshold
        value: "keep.last(keep.split({{ foreach.value }}, ' '))"
        # each line looks like:
        # '2023-02-09 20:08:16,773 INFO: uvicorn.access -: 127.0.0.1:53948 - "GET /test2 HTTP/1.1" 503'
        # where the "503" is the number of the
        compare_to: 200