mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00:00
fix sticky benchmark comment on PRs
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
8464d9766a
commit
ac4b653721
1 changed files with 5 additions and 1 deletions
6
.github/workflows/validations.yaml
vendored
6
.github/workflows/validations.yaml
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue