Skip to content

Commit

Permalink
[CLEANUP]: Update PR Comment, with github-script
Browse files Browse the repository at this point in the history
  • Loading branch information
demetribu committed Aug 26, 2023
1 parent dfe7ca6 commit 0da7329
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,21 @@ jobs:
retention-days: 30

- name: PR Comment
uses: github-actions-up-and-running/[email protected]
if: ${{ github.event_name == 'pull_request' }}
if: github.event_name == 'pull_request'
uses: actions/github-script@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
message: |
<details>
<summary>BENCHMARK_REPORT</summary>
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: |
<details>
<summary>BENCHMARK_REPORT</summary>
```
${{ env.BENCHMARK_REPORT }}
```
</details>
```
${{ env.BENCHMARK_REPORT }}
```
</details>
})

0 comments on commit 0da7329

Please sign in to comment.