Skip to content

Commit 4134197

Browse files
committed
Improve workflow script editability
1 parent 8f70e6e commit 4134197

6 files changed

+48
-0
lines changed

.github/workflows/check-action-typing.main.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest
3232
import io.github.typesafegithub.workflows.domain.triggers.PullRequest
3333
import io.github.typesafegithub.workflows.domain.triggers.Push
3434

35+
// comment in for editability with IntelliSense
36+
//fun workflowWithCopyright(
37+
// name: String,
38+
// on: List<io.github.typesafegithub.workflows.domain.triggers.Trigger>,
39+
// sourceFile: java.io.File,
40+
// block: io.github.typesafegithub.workflows.dsl.WorkflowBuilder.() -> Unit
41+
//) = Unit
42+
3543
workflowWithCopyright(
3644
name = "Check Action Typing",
3745
on = listOf(

.github/workflows/check-all-workflow-yaml-consistency.main.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest
3030
import io.github.typesafegithub.workflows.domain.triggers.PullRequest
3131
import io.github.typesafegithub.workflows.domain.triggers.Push
3232

33+
// comment in for editability with IntelliSense
34+
//fun workflowWithCopyright(
35+
// name: String,
36+
// on: List<io.github.typesafegithub.workflows.domain.triggers.Trigger>,
37+
// sourceFile: java.io.File,
38+
// block: io.github.typesafegithub.workflows.dsl.WorkflowBuilder.() -> Unit
39+
//) = Unit
40+
3341
workflowWithCopyright(
3442
name = "Check all Workflow YAML Consistency",
3543
on = listOf(

.github/workflows/check-dependency-versions.main.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ import io.github.typesafegithub.workflows.domain.RunnerType.WindowsLatest
3535
import io.github.typesafegithub.workflows.domain.triggers.Cron
3636
import io.github.typesafegithub.workflows.domain.triggers.Schedule
3737

38+
// comment in for editability with IntelliSense
39+
//fun workflowWithCopyright(
40+
// name: String,
41+
// on: List<io.github.typesafegithub.workflows.domain.triggers.Trigger>,
42+
// sourceFile: java.io.File,
43+
// block: io.github.typesafegithub.workflows.dsl.WorkflowBuilder.() -> Unit
44+
//) = Unit
45+
3846
workflowWithCopyright(
3947
name = "Check Dependency Versions",
4048
on = listOf(

.github/workflows/test.main.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ import io.github.typesafegithub.workflows.dsl.WorkflowBuilder
5858
import io.github.typesafegithub.workflows.dsl.expressions.expr
5959
import kotlin.math.min
6060

61+
// comment in for editability with IntelliSense
62+
//fun workflowWithCopyright(
63+
// name: String,
64+
// on: List<io.github.typesafegithub.workflows.domain.triggers.Trigger>,
65+
// sourceFile: java.io.File,
66+
// block: io.github.typesafegithub.workflows.dsl.WorkflowBuilder.() -> Unit
67+
//) = Unit
68+
6169
val environments = listOf(
6270
"windows-2019",
6371
"windows-2022",

.github/workflows/validate-gradle-wrapper.main.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest
3232
import io.github.typesafegithub.workflows.domain.triggers.PullRequest
3333
import io.github.typesafegithub.workflows.domain.triggers.Push
3434

35+
// comment in for editability with IntelliSense
36+
//fun workflowWithCopyright(
37+
// name: String,
38+
// on: List<io.github.typesafegithub.workflows.domain.triggers.Trigger>,
39+
// sourceFile: java.io.File,
40+
// block: io.github.typesafegithub.workflows.dsl.WorkflowBuilder.() -> Unit
41+
//) = Unit
42+
3543
workflowWithCopyright(
3644
name = "Validate Gradle Wrapper",
3745
on = listOf(

.github/workflows/verify-release.main.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ import io.github.typesafegithub.workflows.domain.RunnerType.WindowsLatest
3030
import io.github.typesafegithub.workflows.domain.triggers.Push
3131
import io.github.typesafegithub.workflows.domain.triggers.WorkflowDispatch
3232

33+
// comment in for editability with IntelliSense
34+
//fun workflowWithCopyright(
35+
// name: String,
36+
// on: List<io.github.typesafegithub.workflows.domain.triggers.Trigger>,
37+
// sourceFile: java.io.File,
38+
// block: io.github.typesafegithub.workflows.dsl.WorkflowBuilder.() -> Unit
39+
//) = Unit
40+
3341
workflowWithCopyright(
3442
name = "Verify Release",
3543
on = listOf(

0 commit comments

Comments
 (0)