From c579ef892e9ef568f83f096c6e45d8d8243fbaf3 Mon Sep 17 00:00:00 2001 From: SX <50966843+S-S-X@users.noreply.github.com> Date: Sun, 23 Jul 2023 17:31:13 +0300 Subject: [PATCH] Use new multiline output handler (#14) --- action.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 0b8402b..b6988ae 100644 --- a/action.yml +++ b/action.yml @@ -100,8 +100,7 @@ runs: grep_nospec=(grep 'No test files found') ("${grep_eronly[@]}"<<<"$OUT" && "${grep_nospec[@]}"<<<"$OUT")&>/dev/null && echo "spec-missing=true" >> $GITHUB_OUTPUT OUT="$(sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g'<<<"$OUT")" - OUT="${OUT//'%'/'%25'}";OUT="${OUT//$'\n'/'%0A'}" - echo "stdout=${OUT//$'\r'/'%0D'}" >> $GITHUB_OUTPUT + printf 'stdout<> $GITHUB_OUTPUT exit $ERR - id: mineunit-report name: mineunit coverage report @@ -110,8 +109,7 @@ runs: run: | $HOME/.luarocks/bin/mineunit -r OUT="$(awk -v p=0 '/^----/{p++;next}p==2{exit}p' luacov.report.out | sort -hrk4)" - OUT="${OUT//'%'/'%25'}";OUT="${OUT//$'\n'/'%0A'}" - echo "report=${OUT//$'\r'/'%0D'}" >> $GITHUB_OUTPUT + printf 'report<> $GITHUB_OUTPUT - id: mineunit-coverage name: collect coverage data working-directory: "${{ inputs.working-directory }}"