Merge pull request #354 from anchore/fix-benchmark-sticky-comment

Fix sticky benchmark comment on PRs
This commit is contained in:
Alex Goodman 2021-03-25 12:00:32 -04:00 committed by GitHub
commit 7b25237cea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,7 +203,11 @@ jobs:
id: benchmark id: benchmark
run: | run: |
REF_NAME=${GITHUB_REF##*/} make benchmark 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 - uses: actions/upload-artifact@v2
with: with: