Created
February 6, 2022 20:20
-
-
Save smx-smx/6d8856d27ac81899f56efdb7cbaf9003 to your computer and use it in GitHub Desktop.
CirrusCI log tail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| taskId="$1" | |
| echo "{\"type\":\"logs\",\"taskId\":${taskId},\"command\":\"build\"}" \ | |
| | websocat -n "wss://api.cirrus-ci.com/ws" \ | |
| | php -R 'echo json_decode($argn)->data;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment