Skip to content

Commit

Permalink
finished
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Apr 9, 2024
1 parent 188441a commit e7fc421
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ jobs:
- name: Run benchmark
run: node bench/index.js

- name: Read benchmark results
run: echo "RESULTS=$(cat bench/results.json)" >> "$GITHUB_ENV"
shell: bash

- name: Comment PR with benchmark result
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const results = require("bench/results.json");
const results = `${{ env.RESULTS }}`;
const pullRequestNumber = context.issue.number;
github.rest.issues.createComment({
issue_number: pullRequestNumber,
Expand Down

0 comments on commit e7fc421

Please sign in to comment.