Skip to content

Commit 0d88db9

Browse files
committed
Trigger dist updating on opening PR
1 parent 98587df commit 0d88db9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/update-dist.main.kts

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import io.github.typesafegithub.workflows.actions.actions.Checkout
1010
import io.github.typesafegithub.workflows.actions.gradle.ActionsSetupGradle
1111
import io.github.typesafegithub.workflows.domain.RunnerType
12+
import io.github.typesafegithub.workflows.domain.triggers.PullRequest
1213
import io.github.typesafegithub.workflows.domain.triggers.WorkflowDispatch
1314
import io.github.typesafegithub.workflows.dsl.workflow
1415
import io.github.typesafegithub.workflows.yaml.writeToFile
@@ -17,6 +18,7 @@ workflow(
1718
name = "Update dist",
1819
on = listOf(
1920
WorkflowDispatch(),
21+
PullRequest(types = listOf(PullRequest.Type.Opened)),
2022
),
2123
sourceFile = __FILE__.toPath(),
2224
) {

.github/workflows/update-dist.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
name: 'Update dist'
66
on:
77
workflow_dispatch: {}
8+
pull_request:
9+
types:
10+
- 'opened'
811
jobs:
912
check_yaml_consistency:
1013
name: 'Check YAML consistency'

0 commit comments

Comments
 (0)