Skip to content

Commit

Permalink
fix: some workflow logs cannot be read due to truncating
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavEikaas committed Feb 22, 2025
1 parent e998705 commit 71f89d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/octo/workflow_runs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ local function get_logs(id)

local sanitized_name = node.id:gsub("/", ""):gsub(":", ""):gsub(">", "")
--Make more than 3 consecutive dots at the end of line into ...
local sanitized_job_id = node.job_id:gsub("/", ""):gsub(":", ""):gsub("%.%.%.%.+$", "...")
local sanitized_job_id = node.job_id:gsub("/", ""):gsub(":", ""):gsub("%.+$", "*/")
local file_name = string.format("%s_%s.txt", node.number, sanitized_name)
local path = vim.fs.normalize(vim.fs.joinpath(sanitized_job_id, file_name))
local path = sanitized_job_id .. file_name
local res = vim
.system({
"unzip",
Expand Down

0 comments on commit 71f89d9

Please sign in to comment.