Skip to content

Commit 7e45aa1

Browse files
authored
Update github-workflows-kt to 2.3.0 (#13)
1 parent fa84807 commit 7e45aa1

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/build.main.kts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env kotlin
22
@file:Repository("https://repo1.maven.org/maven2/")
3-
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:1.15.0")
3+
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:2.3.0")
44

5-
@file:Repository("https://github-workflows-kt-bindings.colman.com.br/binding/")
5+
@file:Repository("https://bindings.krzeminski.it")
66
@file:DependsOn("actions:checkout:v4")
77
@file:DependsOn("gradle:actions__setup-gradle:v3")
88

@@ -12,15 +12,14 @@ import io.github.typesafegithub.workflows.domain.RunnerType
1212
import io.github.typesafegithub.workflows.domain.triggers.PullRequest
1313
import io.github.typesafegithub.workflows.domain.triggers.Push
1414
import io.github.typesafegithub.workflows.dsl.workflow
15-
import io.github.typesafegithub.workflows.yaml.writeToFile
1615

1716
workflow(
1817
name = "Build",
1918
on = listOf(
2019
Push(branches = listOf("main")),
2120
PullRequest(),
2221
),
23-
sourceFile = __FILE__.toPath(),
22+
sourceFile = __FILE__,
2423
) {
2524
job(
2625
id = "build",
@@ -30,4 +29,4 @@ workflow(
3029
uses(action = ActionsSetupGradle())
3130
run(command = "./gradlew build")
3231
}
33-
}.writeToFile()
32+
}

.github/workflows/deploy.main.kts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env kotlin
22
@file:Repository("https://repo1.maven.org/maven2/")
3-
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:1.15.0")
3+
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:2.3.0")
44

5-
@file:Repository("https://github-workflows-kt-bindings.colman.com.br/binding/")
5+
@file:Repository("https://bindings.krzeminski.it")
66
@file:DependsOn("actions:checkout:v4")
77
@file:DependsOn("gradle:actions__setup-gradle:v3")
88
@file:DependsOn("actions:configure-pages:v5")
@@ -20,12 +20,11 @@ import io.github.typesafegithub.workflows.domain.Permission
2020
import io.github.typesafegithub.workflows.domain.RunnerType
2121
import io.github.typesafegithub.workflows.domain.triggers.Push
2222
import io.github.typesafegithub.workflows.dsl.workflow
23-
import io.github.typesafegithub.workflows.yaml.writeToFile
2423

2524
workflow(
2625
name = "Deploy",
2726
on = listOf(Push(branches = listOf("main"))),
28-
sourceFile = __FILE__.toPath(),
27+
sourceFile = __FILE__,
2928
permissions = mapOf(
3029
Permission.Contents to Mode.Read,
3130
Permission.Pages to Mode.Write,
@@ -49,4 +48,4 @@ workflow(
4948
))
5049
uses(action = DeployPages())
5150
}
52-
}.writeToFile()
51+
}

0 commit comments

Comments
 (0)