Skip to content

Commit 79d85ea

Browse files
committed
[Gradle Release Plugin] - pre tag commit: 'v4.1.1'.
2 parents 5ff2c04 + 75ccefa commit 79d85ea

29 files changed

+1587
-2298
lines changed

.github/workflows/check-action-typing.main.kts

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env kotlin
22

33
/*
4-
* Copyright 2020-2024 Björn Kautler
4+
* Copyright 2020-2025 Björn Kautler
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -18,8 +18,13 @@
1818

1919
@file:Import("workflow-with-copyright.main.kts")
2020
@file:Repository("https://bindings.krzeminski.it/")
21+
22+
@file:Repository("https://repo.maven.apache.org/maven2/")
23+
// work-around for https://youtrack.jetbrains.com/issue/KT-69145
24+
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.2.0")
25+
2126
@file:DependsOn("actions:checkout:v4")
22-
@file:DependsOn("typesafegithub:github-actions-typing:v1")
27+
@file:DependsOn("typesafegithub:github-actions-typing:v2")
2328

2429
import io.github.typesafegithub.workflows.actions.actions.Checkout
2530
import io.github.typesafegithub.workflows.actions.typesafegithub.GithubActionsTyping

.github/workflows/check-action-typing.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020-2024 Björn Kautler
1+
# Copyright 2020-2025 Björn Kautler
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -20,6 +20,9 @@ name: 'Check Action Typing'
2020
on:
2121
push: {}
2222
pull_request: {}
23+
concurrency:
24+
group: '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}'
25+
cancel-in-progress: true
2326
jobs:
2427
check_yaml_consistency:
2528
name: 'Check YAML consistency'
@@ -48,4 +51,4 @@ jobs:
4851
uses: 'actions/checkout@v4'
4952
- id: 'step-2'
5053
name: 'Check Action Typing'
51-
uses: 'typesafegithub/github-actions-typing@v1'
54+
uses: 'typesafegithub/github-actions-typing@v2'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#!/usr/bin/env kotlin
2+
3+
/*
4+
* Copyright 2020-2025 Björn Kautler
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
@file:Import("workflow-with-copyright.main.kts")
20+
21+
@file:Repository("https://repo.maven.apache.org/maven2/")
22+
// work-around for https://youtrack.jetbrains.com/issue/KT-69145
23+
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.2.0")
24+
25+
@file:Repository("https://bindings.krzeminski.it/")
26+
@file:DependsOn("actions:checkout:v4")
27+
28+
import io.github.typesafegithub.workflows.actions.actions.Checkout
29+
import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest
30+
import io.github.typesafegithub.workflows.domain.triggers.PullRequest
31+
import io.github.typesafegithub.workflows.domain.triggers.Push
32+
33+
workflowWithCopyright(
34+
name = "Check all Workflow YAML Consistency",
35+
on = listOf(
36+
Push(),
37+
PullRequest()
38+
),
39+
sourceFile = __FILE__
40+
) {
41+
job(
42+
id = "check_all_workflow_yaml_consistency",
43+
name = "Check all Workflow YAML Consistency",
44+
runsOn = UbuntuLatest
45+
) {
46+
run(
47+
name = "Configure Git",
48+
command = "git config --global core.autocrlf input"
49+
)
50+
uses(
51+
name = "Checkout",
52+
action = Checkout()
53+
)
54+
run(
55+
name = "Regenerate all Workflow YAMLs",
56+
command = """find .github/workflows -mindepth 1 -maxdepth 1 -name '*.main.kts' -exec {} \;"""
57+
)
58+
run(
59+
name = "Check for Modifications",
60+
command = """
61+
git add --intent-to-add .
62+
git diff --exit-code
63+
""".trimIndent()
64+
)
65+
}
66+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Copyright 2020-2025 Björn Kautler
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# This file was generated using Kotlin DSL (.github/workflows/check-all-workflow-yaml-consistency.main.kts).
16+
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
17+
# Generated with https://github.com/typesafegithub/github-workflows-kt
18+
19+
name: 'Check all Workflow YAML Consistency'
20+
on:
21+
push: {}
22+
pull_request: {}
23+
concurrency:
24+
group: '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}'
25+
cancel-in-progress: true
26+
jobs:
27+
check_yaml_consistency:
28+
name: 'Check YAML consistency'
29+
runs-on: 'ubuntu-latest'
30+
steps:
31+
- id: 'step-0'
32+
name: 'Check out'
33+
uses: 'actions/checkout@v4'
34+
- id: 'step-1'
35+
name: 'Execute script'
36+
run: 'rm ''.github/workflows/check-all-workflow-yaml-consistency.yaml'' && ''.github/workflows/check-all-workflow-yaml-consistency.main.kts'''
37+
- id: 'step-2'
38+
name: 'Consistency check'
39+
run: 'git diff --exit-code ''.github/workflows/check-all-workflow-yaml-consistency.yaml'''
40+
check_all_workflow_yaml_consistency:
41+
name: 'Check all Workflow YAML Consistency'
42+
runs-on: 'ubuntu-latest'
43+
needs:
44+
- 'check_yaml_consistency'
45+
steps:
46+
- id: 'step-0'
47+
name: 'Configure Git'
48+
run: 'git config --global core.autocrlf input'
49+
- id: 'step-1'
50+
name: 'Checkout'
51+
uses: 'actions/checkout@v4'
52+
- id: 'step-2'
53+
name: 'Regenerate all Workflow YAMLs'
54+
run: 'find .github/workflows -mindepth 1 -maxdepth 1 -name ''*.main.kts'' -exec {} \;'
55+
- id: 'step-3'
56+
name: 'Check for Modifications'
57+
run: |-
58+
git add --intent-to-add .
59+
git diff --exit-code

.github/workflows/check-dependency-versions.main.kts

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env kotlin
22

33
/*
4-
* Copyright 2020-2024 Björn Kautler
4+
* Copyright 2020-2025 Björn Kautler
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -17,6 +17,11 @@
1717
*/
1818

1919
@file:Import("workflow-with-copyright.main.kts")
20+
21+
@file:Repository("https://repo.maven.apache.org/maven2/")
22+
// work-around for https://youtrack.jetbrains.com/issue/KT-69145
23+
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.2.0")
24+
2025
@file:Repository("https://bindings.krzeminski.it/")
2126
@file:DependsOn("actions:checkout:v4")
2227
@file:DependsOn("actions:setup-java:v4")

.github/workflows/check-dependency-versions.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020-2024 Björn Kautler
1+
# Copyright 2020-2025 Björn Kautler
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -20,6 +20,9 @@ name: 'Check Dependency Versions'
2020
on:
2121
schedule:
2222
- cron: '0 0 * * FRI'
23+
concurrency:
24+
group: '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}'
25+
cancel-in-progress: true
2326
jobs:
2427
check_yaml_consistency:
2528
name: 'Check YAML consistency'

0 commit comments

Comments
 (0)