Skip to content

Commit 06c168f

Browse files
chore(deps): update dependency io.github.typesafegithub:github-workflows-kt to v2 (#1459)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [io.github.typesafegithub:github-workflows-kt](https://togithub.com/typesafegithub/github-workflows-kt) | `1.15.0` -> `2.0.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.github.typesafegithub:github-workflows-kt/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.github.typesafegithub:github-workflows-kt/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.github.typesafegithub:github-workflows-kt/1.15.0/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.github.typesafegithub:github-workflows-kt/1.15.0/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>typesafegithub/github-workflows-kt (io.github.typesafegithub:github-workflows-kt)</summary> ### [`v2.0.0`](https://togithub.com/typesafegithub/github-workflows-kt/compare/v1.15.0...v2.0.0) [Compare Source](https://togithub.com/typesafegithub/github-workflows-kt/compare/v1.15.0...v2.0.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/typesafegithub/github-workflows-kt). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjMuNSIsInVwZGF0ZWRJblZlciI6IjM3LjM2My41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Piotr Krzeminski <[email protected]>
1 parent 290863d commit 06c168f

12 files changed

+43
-45
lines changed

.github/workflows/_shared.main.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env kotlin
2-
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:1.15.0")
2+
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:2.0.0")
33

44
import io.github.typesafegithub.workflows.dsl.expressions.expr
55

.github/workflows/actions-versions.main.kts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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.0.0")
44

55
@file:Repository("https://github-workflows-kt-bindings.colman.com.br/binding/")
66
@file:DependsOn("actions:checkout:v4")
@@ -19,7 +19,7 @@ import io.github.typesafegithub.workflows.domain.triggers.Schedule
1919
import io.github.typesafegithub.workflows.domain.triggers.WorkflowDispatch
2020
import io.github.typesafegithub.workflows.dsl.expressions.expr
2121
import io.github.typesafegithub.workflows.dsl.workflow
22-
import io.github.typesafegithub.workflows.yaml.writeToFile
22+
import io.github.typesafegithub.workflows.yaml.DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG
2323

2424
workflow(
2525
name = "Updates available",
@@ -29,8 +29,10 @@ workflow(
2929
)),
3030
WorkflowDispatch(),
3131
),
32-
sourceFile = __FILE__.toPath(),
33-
yamlConsistencyJobCondition = disableScheduledJobInForks,
32+
sourceFile = __FILE__,
33+
consistencyCheckJobConfig = DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG.copy(
34+
condition = disableScheduledJobInForks,
35+
),
3436
) {
3537
job(
3638
id = "updates-available",
@@ -42,7 +44,7 @@ workflow(
4244
uses(action = ActionsSetupGradle())
4345
run(
4446
name = "Run suggestVersions",
45-
env = linkedMapOf("GITHUB_TOKEN" to expr("secrets.GITHUB_TOKEN")),
47+
env = mapOf("GITHUB_TOKEN" to expr("secrets.GITHUB_TOKEN")),
4648
command = "./gradlew suggestVersions",
4749
)
4850
uses(
@@ -53,4 +55,4 @@ workflow(
5355
)
5456
)
5557
}
56-
}.writeToFile()
58+
}

.github/workflows/bindings-server.main.kts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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.0.0")
44

55
@file:Repository("https://github-workflows-kt-bindings.colman.com.br/binding/")
66
@file:DependsOn("actions:checkout:v4")
@@ -15,7 +15,6 @@ import io.github.typesafegithub.workflows.domain.triggers.Push
1515
import io.github.typesafegithub.workflows.dsl.expressions.Contexts
1616
import io.github.typesafegithub.workflows.dsl.expressions.expr
1717
import io.github.typesafegithub.workflows.dsl.workflow
18-
import io.github.typesafegithub.workflows.yaml.writeToFile
1918
import java.net.URI
2019
import java.net.ConnectException
2120
import java.net.http.HttpClient
@@ -36,13 +35,13 @@ workflow(
3635
Push(branches = listOf("main")),
3736
PullRequest(),
3837
),
39-
sourceFile = __FILE__.toPath(),
38+
sourceFile = __FILE__,
4039
) {
4140
val endToEndTest = job(
4241
id = "end-to-end-test",
4342
name = "End-to-end test",
4443
runsOn = UbuntuLatest,
45-
env = linkedMapOf(
44+
env = mapOf(
4645
"GITHUB_TOKEN" to expr { GITHUB_TOKEN },
4746
),
4847
) {
@@ -100,7 +99,7 @@ workflow(
10099
runsOn = UbuntuLatest,
101100
`if` = expr { "${github.event_name} == 'push'" },
102101
needs = listOf(endToEndTest),
103-
env = linkedMapOf(
102+
env = mapOf(
104103
"DOCKERHUB_USERNAME" to expr { DOCKERHUB_USERNAME },
105104
"DOCKERHUB_PASSWORD" to expr { DOCKERHUB_PASSWORD },
106105
),
@@ -119,4 +118,4 @@ workflow(
119118
command = "curl -X POST ${expr { TRIGGER_IMAGE_PULL }} --insecure",
120119
)
121120
}
122-
}.writeToFile()
121+
}

.github/workflows/build.main.kts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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.0.0")
44

55
@file:Repository("https://github-workflows-kt-bindings.colman.com.br/binding/")
66
@file:DependsOn("actions:checkout:v4")
@@ -21,7 +21,6 @@ import io.github.typesafegithub.workflows.domain.triggers.Push
2121
import io.github.typesafegithub.workflows.dsl.expressions.Contexts
2222
import io.github.typesafegithub.workflows.dsl.expressions.expr
2323
import io.github.typesafegithub.workflows.dsl.workflow
24-
import io.github.typesafegithub.workflows.yaml.writeToFile
2524

2625
val GRADLE_ENCRYPTION_KEY by Contexts.secrets
2726

@@ -31,7 +30,7 @@ workflow(
3130
Push(branches = listOf("main")),
3231
PullRequest(),
3332
),
34-
sourceFile = __FILE__.toPath(),
33+
sourceFile = __FILE__,
3534
) {
3635
listOf(UbuntuLatest, Windows2022).forEach { runnerType ->
3736
job(
@@ -47,7 +46,7 @@ workflow(
4746
name = "Build",
4847
command = "./gradlew build",
4948
env =
50-
linkedMapOf(
49+
mapOf(
5150
"GITHUB_TOKEN" to expr("secrets.GITHUB_TOKEN"),
5251
),
5352
)
@@ -59,7 +58,7 @@ workflow(
5958
name = "Publish snapshot",
6059
runsOn = UbuntuLatest,
6160
condition = expr { "${github.ref} == 'refs/heads/main'" },
62-
env = linkedMapOf(
61+
env = mapOf(
6362
"ORG_GRADLE_PROJECT_sonatypeUsername" to expr("secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME"),
6463
"ORG_GRADLE_PROJECT_sonatypePassword" to expr("secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD"),
6564
),
@@ -149,4 +148,4 @@ workflow(
149148
command = "git diff --exit-code .",
150149
)
151150
}
152-
}.writeToFile()
151+
}

.github/workflows/check-if-action-bindings-up-to-date.main.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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.0.0")
44

55
@file:Repository("https://github-workflows-kt-bindings.colman.com.br/binding/")
66
@file:DependsOn("actions:checkout:v4")
@@ -16,7 +16,6 @@ import io.github.typesafegithub.workflows.domain.triggers.PullRequest
1616
import io.github.typesafegithub.workflows.domain.triggers.Push
1717
import io.github.typesafegithub.workflows.domain.triggers.WorkflowDispatch
1818
import io.github.typesafegithub.workflows.dsl.workflow
19-
import io.github.typesafegithub.workflows.yaml.writeToFile
2019

2120
workflow(
2221
name = "Check if action bindings up to date",
@@ -25,7 +24,7 @@ workflow(
2524
PullRequest(),
2625
WorkflowDispatch(),
2726
),
28-
sourceFile = __FILE__.toPath(),
27+
sourceFile = __FILE__,
2928
) {
3029
listOf(UbuntuLatest, Windows2022).forEach { runnerType ->
3130
job(
@@ -45,4 +44,4 @@ workflow(
4544
)
4645
}
4746
}
48-
}.writeToFile()
47+
}

.github/workflows/create-action-update-prs.main.kts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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.0.0")
44

55
@file:Repository("https://github-workflows-kt-bindings.colman.com.br/binding/")
66
@file:DependsOn("actions:checkout:v4")
@@ -17,7 +17,7 @@ import io.github.typesafegithub.workflows.domain.triggers.Schedule
1717
import io.github.typesafegithub.workflows.domain.triggers.WorkflowDispatch
1818
import io.github.typesafegithub.workflows.dsl.expressions.expr
1919
import io.github.typesafegithub.workflows.dsl.workflow
20-
import io.github.typesafegithub.workflows.yaml.writeToFile
20+
import io.github.typesafegithub.workflows.yaml.DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG
2121

2222
workflow(
2323
name = "Create action update PRs",
@@ -27,8 +27,10 @@ workflow(
2727
)),
2828
WorkflowDispatch(),
2929
),
30-
sourceFile = __FILE__.toPath(),
31-
yamlConsistencyJobCondition = disableScheduledJobInForks,
30+
sourceFile = __FILE__,
31+
consistencyCheckJobConfig = DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG.copy(
32+
condition = disableScheduledJobInForks,
33+
),
3234
) {
3335
job(
3436
id = "check-updates-and-create-prs",
@@ -40,8 +42,8 @@ workflow(
4042
uses(action = ActionsSetupGradle())
4143
run(
4244
name = "Run logic",
43-
env = linkedMapOf("GITHUB_TOKEN" to expr("secrets.GITHUB_TOKEN")),
45+
env = mapOf("GITHUB_TOKEN" to expr("secrets.GITHUB_TOKEN")),
4446
command = "./gradlew createActionUpdatePRs",
4547
)
4648
}
47-
}.writeToFile()
49+
}

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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.0.0")
44

55
@file:Repository("https://github-workflows-kt-bindings.colman.com.br/binding/")
66
@file:DependsOn("actions:checkout:v4")
@@ -12,7 +12,6 @@ import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest
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 = "Validate Gradle wrapper",
@@ -25,7 +24,7 @@ workflow(
2524
paths = listOf("gradle/wrapper/gradle-wrapper.jar"),
2625
),
2726
),
28-
sourceFile = __FILE__.toPath(),
27+
sourceFile = __FILE__,
2928
) {
3029
job(
3130
id = "validation",
@@ -37,4 +36,4 @@ workflow(
3736
action = WrapperValidationAction(),
3837
)
3938
}
40-
}.writeToFile()
39+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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.0.0")
44

55
@file:Repository("https://github-workflows-kt-bindings.colman.com.br/binding/")
66
@file:DependsOn("gradle:actions__setup-gradle:v3")

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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.0.0")
44

55
@file:Repository("https://github-workflows-kt-bindings.colman.com.br/binding/")
66
@file:DependsOn("actions:checkout:v4")
@@ -13,12 +13,11 @@ import io.github.typesafegithub.workflows.actions.actions.Checkout
1313
import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest
1414
import io.github.typesafegithub.workflows.domain.triggers.WorkflowDispatch
1515
import io.github.typesafegithub.workflows.dsl.workflow
16-
import io.github.typesafegithub.workflows.yaml.writeToFile
1716

1817
workflow(
1918
name = "Release docs",
2019
on = listOf(WorkflowDispatch()),
21-
sourceFile = __FILE__.toPath(),
20+
sourceFile = __FILE__,
2221
) {
2322
job(
2423
id = "release-docs",
@@ -30,4 +29,4 @@ workflow(
3029

3130
deployDocs()
3231
}
33-
}.writeToFile()
32+
}

.github/workflows/release.main.kts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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.0.0")
44

55
@file:Repository("https://github-workflows-kt-bindings.colman.com.br/binding/")
66
@file:DependsOn("actions:checkout:v4")
@@ -17,13 +17,12 @@ import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest
1717
import io.github.typesafegithub.workflows.domain.triggers.Push
1818
import io.github.typesafegithub.workflows.dsl.expressions.expr
1919
import io.github.typesafegithub.workflows.dsl.workflow
20-
import io.github.typesafegithub.workflows.yaml.writeToFile
2120

2221
workflow(
2322
name = "Release",
2423
on = listOf(Push(tags = listOf("v*.*.*"))),
25-
sourceFile = __FILE__.toPath(),
26-
env = linkedMapOf(
24+
sourceFile = __FILE__,
25+
env = mapOf(
2726
"SIGNING_KEY" to expr("secrets.SIGNING_KEY"),
2827
"SIGNING_PASSWORD" to expr("secrets.SIGNING_PASSWORD"),
2928
"ORG_GRADLE_PROJECT_sonatypeUsername" to expr("secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME"),
@@ -62,4 +61,4 @@ workflow(
6261

6362
deployDocs()
6463
}
65-
}.writeToFile()
64+
}

0 commit comments

Comments
 (0)