Skip to content

Commit

Permalink
rm color symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Sep 10, 2024
1 parent 287dc16 commit c0fff52
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,24 @@ jobs:
else
pnpm run bench --run --outputJson benchmark.json > benchmark.txt
fi
echo 'BENCHMARK_RESULT<<EOF' >> $GITHUB_OUTPUT
sed -i -e '$a\' benchmark.txt
sed -e 's/\x1b\[[0-9;]*m//g'
cat benchmark.txt >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
cat benchmark.txt >> $GITHUB_STEP_SUMMARY
- uses: actions/github-script@v6
env:
BENCHMARK_RESULT: ${{ steps.benchmark-result.outputs.BENCHMARK_RESULT }}
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: process.env.BENCHMARK_RESULT
})
- run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: branch
- name: Store benchmark dataq
Expand Down

0 comments on commit c0fff52

Please sign in to comment.