Skip to content

Commit b4ca295

Browse files
committed
pr action
1 parent 6e172e9 commit b4ca295

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
name: 🏁 Run Release Performance Check
22

33
on:
4-
push:
4+
issue_comment:
5+
types: [created]
56
branches:
67
- main
78
- "rc/**"
89
- next
9-
pull_request:
10-
branches:
11-
- "**"
12-
workflow_dispatch:
1310

1411
jobs:
1512
dispatch-matrix-check:
1613
runs-on: ubuntu-latest
1714
steps:
1815

1916
- name: Dispatch Performance Testing Job
17+
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/test-performance') }}
2018
uses: peter-evans/repository-dispatch@v2
2119
with:
2220
token: ${{ secrets.RELEASE_ENGINEERING_TOKEN }}
@@ -26,11 +24,12 @@ jobs:
2624

2725

2826
- uses: actions/github-script@v6
27+
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/test-performance') }}
2928
with:
3029
script: |
3130
github.rest.issues.createComment({
3231
issue_number: context.issue.number,
3332
owner: context.repo.owner,
3433
repo: context.repo.repo,
35-
body: '🏁 Beep Boop! Performance testing for this PR has been initiated. Please check back later for results. Note that the query package generation step must complete before testing will start so it might be a minute. <br><br> :bulb: If you do not hear back from me please check my status! **I will report even if this PR does not contain files eligible for matrix testing.**'
34+
body: '🏁 Beep Boop! Performance testing for this PR has been initiated. Please check back later for results. Note that the query package generation step must complete before testing will start so it might be a minute. <br><br> :bulb: If you do not hear back from me please check my status! **I will report even if I fail!**'
3635
})

0 commit comments

Comments
 (0)