Skip to content

Commit

Permalink
Update github-workflows-kt to 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed Sep 4, 2024
1 parent c2c5358 commit f1b7dd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -1068,27 +1068,27 @@ fun JobBuilder<*>.verifyCommandResult(
)
}

val Step.successCondition
val Step<*>.successCondition
get() = """
always()
&& (${outcome.eq(Success)})
""".trimIndent()

val Step.successOnAlpineCondition
val Step<*>.successOnAlpineCondition
get() = """
always()
&& (${outcome.eq(Success)})
&& (matrix.distribution.user-id == 'Alpine')
""".trimIndent()

val Step.successNotOnUbuntu2404Condition
val Step<*>.successNotOnUbuntu2404Condition
get() = """
always()
&& (${outcome.eq(Success)})
&& (matrix.distribution.user-id != 'Ubuntu-24.04')
""".trimIndent()

fun Step.getSuccessNotOnDistributionCondition(i: Int, distribution: String) = """
fun Step<*>.getSuccessNotOnDistributionCondition(i: Int, distribution: String) = """
always()
&& (${outcome.eq(Success)})
&& (matrix.distributions.distribution$i.user-id != '$distribution')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workflow-with-copyright.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

@file:Repository("https://repo.maven.apache.org/maven2/")
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:2.3.0")
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.0.0")

import io.github.typesafegithub.workflows.domain.Concurrency
import io.github.typesafegithub.workflows.domain.triggers.Trigger
Expand Down

0 comments on commit f1b7dd4

Please sign in to comment.