Github "::set-output" interprets quoted values

it looks like github actions interprets quoted strings as if they not quoted.

i was capturing the contents of /etc/os-release to document the environment a test was run in.

my original attempt was pretty simple:

details=$(tr '\n' ',' < /etc/os-release)

unfortunately, this results in the parens being interpreted, generating an error.

Run echo "/etc/os-release NAME="CentOS Linux",VERSION="7 (Core)",ID="centos",ID_LIKE="rhel fedora",VERSION_ID="7",PRETTY_NAME="CentOS Linux 7 (Core)",ANSI_COLOR="0;31",CPE_NAME="cpe:/o:centos:centos:7",HOME_URL="https://www.centos.org/",BUG_REPORT_URL="https://bugs.centos.org/",,CENTOS_MANTISBT_PROJECT="CentOS-7",CENTOS_MANTISBT_PROJECT_VERSION="7",REDHAT_SUPPORT_PRODUCT="centos",REDHAT_SUPPORT_PRODUCT_VERSION="7","
/home/runner/work/_temp/d638bac5-e776-4596-b9e7-814048fbb390.sh: line 1: syntax error near unexpected token `('

so i fixed that and found that a quoted semicolon is interpreted as end-of-statement, resulting in another error.

Run echo "/etc/os-release NAME="CentOS Linux",VERSION="7 Core",ID="centos",ID_LIKE="rhel fedora",VERSION_ID="7",PRETTY_NAME="CentOS Linux 7 Core",ANSI_COLOR="0;31",CPE_NAME="cpe:/o:centos:centos:7",HOME_URL="https://www.centos.org/",BUG_REPORT_URL="https://bugs.centos.org/",,CENTOS_MANTISBT_PROJECT="CentOS-7",CENTOS_MANTISBT_PROJECT_VERSION="7",REDHAT_SUPPORT_PRODUCT="centos",REDHAT_SUPPORT_PRODUCT_VERSION="7","
/etc/os-release NAME=CentOS Linux,VERSION=7 Core,ID=centos,ID_LIKE=rhel fedora,VERSION_ID=7,PRETTY_NAME=CentOS Linux 7 Core,ANSI_COLOR=0
/home/runner/work/_temp/822ef29b-3252-495b-bf57-54e4ae8d06df.sh: line 1: 31,CPE_NAME=cpe:/o:centos:centos:7,HOME_URL=https://www.centos.org/,BUG_REPORT_URL=https://bugs.centos.org/,,CENTOS_MANTISBT_PROJECT=CentOS-7,CENTOS_MANTISBT_PROJECT_VERSION=7,REDHAT_SUPPORT_PRODUCT=centos,REDHAT_SUPPORT_PRODUCT_VERSION=7,: No such file or directory

i can get around it by sanitizing the os-release file contents but this seems like a bug that should be fixed.

my final solution (specific to centos):
details=$(tr -d '()' < /etc/os-release | tr '\n' ',' | sed 's/ANSI_COLOR="0;31",//')