Skip to main content

parse_github_kv_file

Function parse_github_kv_file 

Source
pub fn parse_github_kv_file(content: &str) -> HashMap<String, String>
Expand description

Parse the GitHub Actions key-value file format used by GITHUB_OUTPUT and GITHUB_ENV.

Supports two formats:

  • Simple: key=value
  • Multiline heredoc: key<<DELIMITER\nline1\nline2\nDELIMITER