From d6324d2c1a4596862c4786ce4a5f83fc3978986b Mon Sep 17 00:00:00 2001 From: volodya-lombrozo Date: Tue, 25 Feb 2025 11:01:15 +0300 Subject: [PATCH] feat(#3936): add 'post-comment' workflow --- .github/workflows/post-comment.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/post-comment.yaml diff --git a/.github/workflows/post-comment.yaml b/.github/workflows/post-comment.yaml new file mode 100644 index 0000000000..1703185226 --- /dev/null +++ b/.github/workflows/post-comment.yaml @@ -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 }}