Skip to content

Commit

Permalink
[Gradle Release Plugin] - pre tag commit: 'v1.3.5'.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed Jan 24, 2023
2 parents 230f54c + c6e8c2a commit b3c1614
Show file tree
Hide file tree
Showing 25 changed files with 3,665 additions and 3,553 deletions.
78 changes: 78 additions & 0 deletions .github/workflows/check-action-typing.main.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
#!/usr/bin/env kotlin

/*
* 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.
*/

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

import it.krzeminski.githubactions.actions.actions.CheckoutV3
import it.krzeminski.githubactions.actions.krzema12.GithubActionsTypingV0
import it.krzeminski.githubactions.domain.RunnerType.UbuntuLatest
import it.krzeminski.githubactions.domain.triggers.PullRequest
import it.krzeminski.githubactions.domain.triggers.Push
import it.krzeminski.githubactions.dsl.workflow
import it.krzeminski.githubactions.yaml.writeToFile

workflow(
name = "Check Action Typing",
on = listOf(
Push(),
PullRequest()
),
sourceFile = __FILE__.toPath()
) {
job(
id = "check_action_typing",
name = "Check Action Typing",
runsOn = UbuntuLatest
) {
run(
name = "Configure Git",
command = "git config --global core.autocrlf input"
)
uses(
name = "Checkout",
action = CheckoutV3()
)
uses(
name = "Check Action Typing",
action = GithubActionsTypingV0()
)
}
}.apply {
writeToFile()
__FILE__.resolveSibling(targetFileName).apply {
writeText(
"""
|# 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.
|
${readText().prependIndent("|")}
""".trimMargin()
)
}
}
57 changes: 57 additions & 0 deletions .github/workflows/check-action-typing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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

name: Check Action Typing
on:
push: {}
pull_request: {}
jobs:
check_yaml_consistency:
runs-on: ubuntu-latest
steps:
- id: step-0
name: Check out
uses: actions/checkout@v3
- id: step-1
name: Set up Java in proper version
uses: actions/setup-java@v3
with:
java-version: 17
distribution: zulu
cache: gradle
- id: step-2
name: Execute script
run: rm '.github/workflows/check-action-typing.yaml' && '.github/workflows/check-action-typing.main.kts'
- id: step-3
name: Consistency check
run: git diff --exit-code '.github/workflows/check-action-typing.yaml'
check_action_typing:
name: Check Action Typing
runs-on: ubuntu-latest
needs:
- check_yaml_consistency
steps:
- id: step-0
name: Configure Git
run: git config --global core.autocrlf input
- id: step-1
name: Checkout
uses: actions/checkout@v3
- id: step-2
name: Check Action Typing
uses: krzema12/github-actions-typing@v0
30 changes: 0 additions & 30 deletions .github/workflows/check-action-typing.yml

This file was deleted.

97 changes: 97 additions & 0 deletions .github/workflows/check-dependency-versions.main.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
#!/usr/bin/env kotlin

/*
* 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.
*/

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

import it.krzeminski.githubactions.actions.CustomAction
import it.krzeminski.githubactions.actions.actions.CheckoutV2
import it.krzeminski.githubactions.domain.RunnerType.WindowsLatest
import it.krzeminski.githubactions.domain.triggers.Cron
import it.krzeminski.githubactions.domain.triggers.Schedule
import it.krzeminski.githubactions.dsl.workflow
import it.krzeminski.githubactions.yaml.writeToFile

workflow(
name = "Check Dependency Versions",
on = listOf(
Schedule(
listOf(
Cron(
minute = "0",
hour = "0",
// work-around for https://github.com/krzema12/github-workflows-kt/issues/642
// use FRI after the issue is fixed
dayWeek = "5"
)
)
)
),
sourceFile = __FILE__.toPath()
) {
job(
id = "check_dependency_versions",
name = "Check Dependency Versions",
runsOn = WindowsLatest
) {
run(
name = "Configure Git",
command = "git config --global core.autocrlf input"
)
uses(
name = "Checkout",
action = CheckoutV2()
)
uses(
name = "Check Dependency Versions",
action = CustomAction(
actionOwner = "burrunan",
actionName = "gradle-cache-action",
actionVersion = "v1",
inputs = mapOf(
"arguments" to "dependencyUpdates",
"debug" to "false",
"concurrent" to "true",
"gradle-dependencies-cache-key" to "buildSrc/**/Versions.kt"
)
)
)
}
}.apply {
writeToFile()
__FILE__.resolveSibling(targetFileName).apply {
writeText(
"""
|# 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.
|
${readText().prependIndent("|")}
""".trimMargin()
)
}
}
62 changes: 62 additions & 0 deletions .github/workflows/check-dependency-versions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# 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

name: Check Dependency Versions
on:
schedule:
- cron: 0 0 * * 5
jobs:
check_yaml_consistency:
runs-on: ubuntu-latest
steps:
- id: step-0
name: Check out
uses: actions/checkout@v3
- id: step-1
name: Set up Java in proper version
uses: actions/setup-java@v3
with:
java-version: 17
distribution: zulu
cache: gradle
- id: step-2
name: Execute script
run: rm '.github/workflows/check-dependency-versions.yaml' && '.github/workflows/check-dependency-versions.main.kts'
- id: step-3
name: Consistency check
run: git diff --exit-code '.github/workflows/check-dependency-versions.yaml'
check_dependency_versions:
name: Check Dependency Versions
runs-on: windows-latest
needs:
- check_yaml_consistency
steps:
- id: step-0
name: Configure Git
run: git config --global core.autocrlf input
- id: step-1
name: Checkout
uses: actions/checkout@v2
- id: step-2
name: Check Dependency Versions
uses: burrunan/gradle-cache-action@v1
with:
arguments: dependencyUpdates
debug: false
concurrent: true
gradle-dependencies-cache-key: buildSrc/**/Versions.kt
38 changes: 0 additions & 38 deletions .github/workflows/check-dependency-versions.yml

This file was deleted.

Loading

0 comments on commit b3c1614

Please sign in to comment.