Skip to content

Commit fe3205c

Browse files
authored
Create trigger-event.yml
1 parent a3b4428 commit fe3205c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/trigger-event.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: repo-dispatch
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
push:
9+
branches: [ master ]
10+
pull_request:
11+
branches: [ master ]
12+
13+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+
jobs:
15+
# This workflow contains a single job called "build"
16+
trigger:
17+
# The type of runner that the job will run on
18+
runs-on: ubuntu-latest
19+
20+
# Steps represent a sequence of tasks that will be executed as part of the job
21+
steps:
22+
- name: Repository Dispatch
23+
uses: peter-evans/repository-dispatch@v1
24+
with:
25+
token: ${{ secrets.REPO_ACCESS_TOKEN }}
26+
event-type: 'matrix-ci'
27+
client-payload: '{"images": [ "ubuntu-latest", "windows-latest" ] }'

0 commit comments

Comments
 (0)