Skip to content

Commit

Permalink
add comment to PR after benchmark runs
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jungblut <[email protected]>
  • Loading branch information
tjungblu committed Jun 28, 2024
1 parent cc78a5a commit 6f20731
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/benchmark-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
---
name: Benchmarks on AMD64
permissions: read-all
permissions:
issues: write
pull-requests: write
# we use "read-all" for the remainder of the scopes
actions: read
checks: read
contents: read
deployments: read
id-token: read
discussions: read
packages: read
pages: read
repository-projects: read
security-events: read
statuses: read
on: [pull_request]
jobs:
benchmark-pull-request:
Expand Down Expand Up @@ -40,3 +54,12 @@ jobs:
fi
fi
done < <(grep geomean result.txt)
- uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: process.env.GITHUB_STEP_SUMMARY
})

0 comments on commit 6f20731

Please sign in to comment.