Skip to content

Commit 2d67509

Browse files
authored
Apply changes to support required action (#7385)
See dotnet/docs#27056 for details. In order for an action to be required for PRs to be merged, required actions must be triggered. If filters prevent them from starting, the action stays in the "pending" state forever.
1 parent 284ebb7 commit 2d67509

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

.github/workflows/build-validation.yml

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,12 @@
11
# This is a basic workflow to help you get started with Actions
2-
name: Snippets 5000
2+
name: 'Snippets 5000'
33

44
# Controls when the action will run. Triggers the workflow on push or pull request
55
# events on the main branch only.
66
on:
7-
pull_request:
8-
paths:
9-
- "**.cs"
10-
- "**.vb"
11-
- "**.fs"
12-
- "**.cpp"
13-
- "**.h"
14-
- "**.xaml"
15-
- "**.razor"
16-
- "**.cshtml"
17-
- "**.vbhtml"
18-
- "**.csproj"
19-
- "**.vbproj"
20-
- "**.fsproj"
21-
- "**.vcxproj"
22-
- "**.sln"
23-
- "**global.json"
24-
- "**snippets.5000.json"
7+
pull_request_target:
258
branches: [ main ]
9+
types: [opened, synchronize, reopened]
2610

2711
env:
2812
DOTNET_INSTALLER_CHANNEL: '6.0'
@@ -31,8 +15,8 @@ env:
3115

3216
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
3317
jobs:
34-
# This workflow contains a single job called "build"
35-
build:
18+
# This workflow contains a single job called "build-snippets"
19+
build-snippets:
3620
# The type of runner that the job will run on
3721
runs-on: windows-latest
3822

0 commit comments

Comments
 (0)