Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/AirspeedVelocity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,19 @@ jobs:
echo 'A plot of the benchmark results have been uploaded as an artifact to the workflow run for this PR.'
echo 'Go to "Actions"->"Benchmark a pull request"->[the most recent run]->"Artifacts" (at the bottom).'
} > body.md
cat body.md >> "$GITHUB_STEP_SUMMARY"
# A PR from a fork gets a read-only GITHUB_TOKEN whatever `permissions` asks for,
# so commenting would 403 and fail the check. Its results stay in the job summary.
- name: Find Comment
if: github.event.pull_request.head.repo.full_name == github.repository
uses: peter-evans/find-comment@v4
id: fcbenchmark
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: "github-actions[bot]"
body-includes: Benchmark Results
- name: Comment on PR
if: github.event.pull_request.head.repo.full_name == github.repository
uses: peter-evans/create-or-update-comment@v5
with:
comment-id: ${{ steps.fcbenchmark.outputs.comment-id }}
Expand Down
Loading