Skip to content

Commit a3b4428

Browse files
authored
Update dotnetcore.yml
1 parent 1059b34 commit a3b4428

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ on:
55
branches: [ master ]
66
pull_request:
77
branches: [ master ]
8+
repository_dispatch:
9+
types: [matrix-ci]
810

911
jobs:
1012
build:
11-
13+
if: github.event != 'repository_dispatch'
1214
runs-on: ${{ matrix.image }}
1315
strategy:
1416
matrix:
@@ -22,3 +24,19 @@ jobs:
2224
dotnet-version: 3.1.101
2325
- name: Build with dotnet
2426
run: dotnet build --configuration Release
27+
28+
build-2:
29+
if: github.event == 'repository_dispatch'
30+
runs-on: ${{ matrix.image }}
31+
strategy:
32+
matrix:
33+
image: ${{ github.event.client_payload.images }}
34+
35+
steps:
36+
- uses: actions/checkout@v2
37+
- name: Setup .NET Core
38+
uses: actions/setup-dotnet@v1
39+
with:
40+
dotnet-version: 3.1.101
41+
- name: Build with dotnet
42+
run: dotnet build --configuration Release

0 commit comments

Comments
 (0)