File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 9
9
import io.github.typesafegithub.workflows.actions.actions.Checkout
10
10
import io.github.typesafegithub.workflows.actions.gradle.ActionsSetupGradle
11
11
import io.github.typesafegithub.workflows.domain.RunnerType
12
+ import io.github.typesafegithub.workflows.domain.triggers.PullRequest
12
13
import io.github.typesafegithub.workflows.domain.triggers.WorkflowDispatch
13
14
import io.github.typesafegithub.workflows.dsl.workflow
14
15
import io.github.typesafegithub.workflows.yaml.writeToFile
@@ -17,6 +18,7 @@ workflow(
17
18
name = " Update dist" ,
18
19
on = listOf (
19
20
WorkflowDispatch (),
21
+ PullRequest (types = listOf (PullRequest .Type .Opened )),
20
22
),
21
23
sourceFile = __FILE__ .toPath(),
22
24
) {
Original file line number Diff line number Diff line change 5
5
name : ' Update dist'
6
6
on :
7
7
workflow_dispatch : {}
8
+ pull_request :
9
+ types :
10
+ - ' opened'
8
11
jobs :
9
12
check_yaml_consistency :
10
13
name : ' Check YAML consistency'
You can’t perform that action at this time.
0 commit comments