Skip to content

Commit 8b1b21d

Browse files
committed
adding matrix check
1 parent 960799a commit 8b1b21d

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 Matrix 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+
example:
16+
runs-on: ubuntu-latest
17+
steps:
18+
19+
- name: Dispatch Matrix 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: matrix-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: '🤖 Bip Boop! Matrix Testing for this PR has been initiated. Please check back later for results.'
36+
})

0 commit comments

Comments
 (0)