fix(output): close capture record before returning failures
A nonzero drone-ssh pipeline previously exited under errexit before writing the closing GITHUB_OUTPUT delimiter. Capture the pipefail status inside an if condition, finish the record, then return that status. Add a separator only when stdout lacks a final newline so successful captured values retain their existing shape.pull/413/head
parent
b838bc2f27
commit
f39ff00725
Loading…
Reference in New Issue