Skip to content

Commit

Permalink
Update add-performance-comment.yml
Browse files Browse the repository at this point in the history
Signed-off-by: noobie3007 <[email protected]>
  • Loading branch information
noobie3007 authored Jul 18, 2024
1 parent b97ae55 commit 6628b44
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/add-performance-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,9 @@ jobs:
if: github.event.label.name == 'Performance'
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: Add comment to PR
uses: actions/github-script@v6
uses: peter-evans/create-or-update-comment@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
console.log('Issue', context.issue.number)
console.log('Owner', context.repo.owner)
console.log('Repo', context.repo.repo)
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: "Hello!\nWe have added a performance benchmark workflow that runs by adding a comment on the PR.\n Please refer https://github.com/opensearch-project/OpenSearch/blob/main/PERFORMANCE_BENCHMARKS.md on how to run benchmarks on pull requests."
})
issue-number: ${{ github.event.pull_request.number }}
body: |
This comment was written by a bot!

0 comments on commit 6628b44

Please sign in to comment.