Skip to content

Commit

Permalink
feat(objectionary#3936): add 'post-comment' workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Feb 25, 2025
1 parent b7e9601 commit d6324d2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/post-comment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SPDX-FileCopyrightText: Copyright (c) 2016-2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
name: Post Benchmark Comment
on:
workflow_run:
workflows: [ "Performance Regression Check" ]
types:
- completed

jobs:
post-comment:
runs-on: ubuntu-latest
steps:
- name: Download Benchmark Comment
uses: actions/download-artifact@v4
with:
name: benchmark-comment
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Post Comment on PR
uses: mshick/add-pr-comment@v2
with:
issue: ${{ github.event.workflow_run.pull_requests[0].number }}
message-path: |
benchmark-comment.md
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d6324d2

Please sign in to comment.