Stream a running workflow job's logs (SSE)
curl --request GET \
--url https://api.ravion.com/github/actions/repositories/{codeSourceId}/jobs/{jobId}/logs/stream \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ravion.com/github/actions/repositories/{codeSourceId}/jobs/{jobId}/logs/stream"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ravion.com/github/actions/repositories/{codeSourceId}/jobs/{jobId}/logs/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ravion.com/github/actions/repositories/{codeSourceId}/jobs/{jobId}/logs/stream",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ravion.com/github/actions/repositories/{codeSourceId}/jobs/{jobId}/logs/stream"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ravion.com/github/actions/repositories/{codeSourceId}/jobs/{jobId}/logs/stream")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ravion.com/github/actions/repositories/{codeSourceId}/jobs/{jobId}/logs/stream")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"events": [
{
"logStreamName": "<string>",
"message": "<string>",
"timestamp": "<string>",
"ingestionTime": "<string>",
"level": "<string>"
}
],
"isFinal": true,
"missingLogGroups": [
"<string>"
]
}GitHub Actions
Stream a running workflow job's logs (SSE)
Streams the console output of a job that runs on a Ravion runner as the runner writes it, before GitHub serves the job’s logs.
GET
/
github
/
actions
/
repositories
/
{codeSourceId}
/
jobs
/
{jobId}
/
logs
/
stream
Stream a running workflow job's logs (SSE)
curl --request GET \
--url https://api.ravion.com/github/actions/repositories/{codeSourceId}/jobs/{jobId}/logs/stream \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ravion.com/github/actions/repositories/{codeSourceId}/jobs/{jobId}/logs/stream"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ravion.com/github/actions/repositories/{codeSourceId}/jobs/{jobId}/logs/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ravion.com/github/actions/repositories/{codeSourceId}/jobs/{jobId}/logs/stream",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ravion.com/github/actions/repositories/{codeSourceId}/jobs/{jobId}/logs/stream"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ravion.com/github/actions/repositories/{codeSourceId}/jobs/{jobId}/logs/stream")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ravion.com/github/actions/repositories/{codeSourceId}/jobs/{jobId}/logs/stream")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"events": [
{
"logStreamName": "<string>",
"message": "<string>",
"timestamp": "<string>",
"ingestionTime": "<string>",
"level": "<string>"
}
],
"isFinal": true,
"missingLogGroups": [
"<string>"
]
}Query Parameters
Response
200 - text/event-stream
SSE stream of CloudWatch log events
SSE event containing a batch of log events
Requested log groups that do not exist in the requested account and region. CloudWatch reports a missing group as an error, but the stream treats it as "no logs yet" so a deploy whose task has not booted still renders; this field lets a client tell a missing group (often a wrong region) apart from a quiet one.
Was this page helpful?