Skip to content

Commit

Permalink
Update github-actions-kotlin-dsl to 0.37.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed Feb 17, 2023
1 parent 37324c8 commit 5a56cf5
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 35 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check-action-typing.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Copyright 2020-2023 Björn Kautler
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# This file was generated using Kotlin DSL (.github/workflows/check-action-typing.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/krzema12/github-workflows-kt
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check-dependency-versions.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Copyright 2020-2023 Björn Kautler
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# This file was generated using Kotlin DSL (.github/workflows/check-dependency-versions.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/krzema12/github-workflows-kt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import it.krzeminski.githubactions.actions.burrunan.GradleCacheActionV1
import it.krzeminski.githubactions.actions.vampire.SetupWslV1
import it.krzeminski.githubactions.actions.vampire.SetupWslV1.Distribution
import it.krzeminski.githubactions.domain.CommandStep
import it.krzeminski.githubactions.domain.ExternalActionStepWithOutputs
import it.krzeminski.githubactions.domain.ExternalActionStep
import it.krzeminski.githubactions.domain.JobOutputs.EMPTY
import it.krzeminski.githubactions.domain.RunnerType
import it.krzeminski.githubactions.domain.RunnerType.WindowsLatest
Expand Down Expand Up @@ -119,7 +119,7 @@ val wslBash = Shell.Custom("wsl-bash {0}")

val wslSh = Shell.Custom("wsl-sh {0}")

lateinit var executeActionStep: ExternalActionStepWithOutputs<SetupWslV1.Outputs>
lateinit var executeActionStep: ExternalActionStep<SetupWslV1.Outputs>

workflowWithCopyright(
name = "Build and Test",
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Copyright 2020-2023 Björn Kautler
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# This file was generated using Kotlin DSL (.github/workflows/test.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/krzema12/github-workflows-kt
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/validate-gradle-wrapper.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Copyright 2020-2023 Björn Kautler
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# This file was generated using Kotlin DSL (.github/workflows/validate-gradle-wrapper.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/krzema12/github-workflows-kt
Expand Down
33 changes: 16 additions & 17 deletions .github/workflows/workflow-with-copyright.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
* limitations under the License.
*/

@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.36.0")
@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.37.0")

import it.krzeminski.githubactions.domain.Concurrency
import it.krzeminski.githubactions.domain.triggers.Trigger
import it.krzeminski.githubactions.dsl.WorkflowBuilder
import it.krzeminski.githubactions.dsl.workflow
import it.krzeminski.githubactions.yaml.Preamble.WithOriginalAfter
import it.krzeminski.githubactions.yaml.writeToFile
import java.io.File
import kotlin.io.path.invariantSeparatorsPathString
Expand All @@ -41,24 +42,22 @@ fun workflowWithCopyright(
concurrency = concurrency,
block = block
).writeToFile(
preamble = """
Copyright 2020-2023 Björn Kautler
preamble = WithOriginalAfter(
"""
Copyright 2020-2023 Björn Kautler
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
This file was generated using Kotlin DSL (${sourceFilePath.invariantSeparatorsPathString.substringAfter("/setup-wsl/")}).
If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
Generated with https://github.com/krzema12/github-workflows-kt
""".trimIndent()
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
""".trimIndent()
)
)
}

0 comments on commit 5a56cf5

Please sign in to comment.