diff --git a/action.yml b/action.yml index 35af14fe7..da92b2736 100644 --- a/action.yml +++ b/action.yml @@ -350,22 +350,24 @@ runs: # Set the captured response as a step output, supporting multiline - echo "gemini_response<> "${GITHUB_OUTPUT}" + _DELIM_RESP="ghdelim_$(openssl rand -hex 16)" + echo "gemini_response<<${_DELIM_RESP}" >> "${GITHUB_OUTPUT}" if [[ -n "${RESPONSE}" ]]; then echo "${RESPONSE}" >> "${GITHUB_OUTPUT}" else cat "${TEMP_STDOUT}" >> "${GITHUB_OUTPUT}" fi - echo "EOF" >> "${GITHUB_OUTPUT}" + echo "${_DELIM_RESP}" >> "${GITHUB_OUTPUT}" # Set the captured errors as a step output, supporting multiline - echo "gemini_errors<> "${GITHUB_OUTPUT}" + _DELIM_ERR="ghdelim_$(openssl rand -hex 16)" + echo "gemini_errors<<${_DELIM_ERR}" >> "${GITHUB_OUTPUT}" if [[ -n "${ERROR_JSON}" ]]; then echo "${ERROR_JSON}" >> "${GITHUB_OUTPUT}" else cat "${TEMP_STDERR}" >> "${GITHUB_OUTPUT}" fi - echo "EOF" >> "${GITHUB_OUTPUT}" + echo "${_DELIM_ERR}" >> "${GITHUB_OUTPUT}" # Generate Job Summary if [[ -n "${GITHUB_STEP_SUMMARY:-}" ]]; then