Skip to content

Commit e2e89f8

Browse files
committed
dispatch release testing
1 parent 336e23a commit e2e89f8

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: 🏁 Run Release Performance Check
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- "rc/**"
8+
- next
9+
pull_request:
10+
branches:
11+
- "**"
12+
workflow_dispatch:
13+
14+
jobs:
15+
dispatch-matrix-check:
16+
runs-on: ubuntu-latest
17+
steps:
18+
19+
- name: Dispatch Performance Testing Job
20+
uses: peter-evans/repository-dispatch@v2
21+
with:
22+
token: ${{ secrets.RELEASE_ENGINEERING_TOKEN }}
23+
repository: github/codeql-coding-standards-release-engineering
24+
event-type: performance-test
25+
client-payload: '{"pr": "${{ github.event.number }}"}'
26+
27+
28+
- uses: actions/github-script@v6
29+
with:
30+
script: |
31+
github.rest.issues.createComment({
32+
issue_number: context.issue.number,
33+
owner: context.repo.owner,
34+
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.**'
36+
})

0 commit comments

Comments
 (0)