From ac4b6537210af8a2f53e404b2da0396395190769 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Wed, 24 Mar 2021 07:35:14 -0400 Subject: [PATCH] fix sticky benchmark comment on PRs Signed-off-by: Alex Goodman --- .github/workflows/validations.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validations.yaml b/.github/workflows/validations.yaml index 73305c489..99cfe6b92 100644 --- a/.github/workflows/validations.yaml +++ b/.github/workflows/validations.yaml @@ -203,7 +203,11 @@ jobs: id: benchmark run: | REF_NAME=${GITHUB_REF##*/} make benchmark - echo "::set-output name=result::$(make show-benchstat)" + OUTPUT=$(make show-benchstat) + OUTPUT="${OUTPUT//'%'/'%25'}" # URL encode all '%' characters + OUTPUT="${OUTPUT//$'\n'/'%0A'}" # URL encode all '\n' characters + OUTPUT="${OUTPUT//$'\r'/'%0D'}" # URL encode all '\r' characters + echo "::set-output name=result::$OUTPUT" - uses: actions/upload-artifact@v2 with: