From 0da73293996dab64b0752604131ae642ffc6e003 Mon Sep 17 00:00:00 2001 From: dmitrybugakov Date: Sat, 26 Aug 2023 10:04:30 +0200 Subject: [PATCH] [CLEANUP]: Update PR Comment, with github-script --- .github/workflows/benchmark.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 82bfcb24..e7018c2c 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -44,15 +44,21 @@ jobs: retention-days: 30 - name: PR Comment - uses: github-actions-up-and-running/pr-comment@v1.0.1 - if: ${{ github.event_name == 'pull_request' }} + if: github.event_name == 'pull_request' + uses: actions/github-script@v3 with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - message: | -
- BENCHMARK_REPORT + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + github.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: | +
+ BENCHMARK_REPORT - ``` - ${{ env.BENCHMARK_REPORT }} - ``` -
+ ``` + ${{ env.BENCHMARK_REPORT }} + ``` +
+ })