Skip to content

Commit

Permalink
[Gradle Release Plugin] - pre tag commit: 'v4.1.1'.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed Feb 24, 2025
2 parents 5ff2c04 + 75ccefa commit 79d85ea
Show file tree
Hide file tree
Showing 29 changed files with 1,587 additions and 2,298 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/check-action-typing.main.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env kotlin

/*
* Copyright 2020-2024 Björn Kautler
* Copyright 2020-2025 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.
Expand All @@ -18,8 +18,13 @@

@file:Import("workflow-with-copyright.main.kts")
@file:Repository("https://bindings.krzeminski.it/")

@file:Repository("https://repo.maven.apache.org/maven2/")
// work-around for https://youtrack.jetbrains.com/issue/KT-69145
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.2.0")

@file:DependsOn("actions:checkout:v4")
@file:DependsOn("typesafegithub:github-actions-typing:v1")
@file:DependsOn("typesafegithub:github-actions-typing:v2")

import io.github.typesafegithub.workflows.actions.actions.Checkout
import io.github.typesafegithub.workflows.actions.typesafegithub.GithubActionsTyping
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/check-action-typing.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020-2024 Björn Kautler
# Copyright 2020-2025 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.
Expand All @@ -20,6 +20,9 @@ name: 'Check Action Typing'
on:
push: {}
pull_request: {}
concurrency:
group: '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}'
cancel-in-progress: true
jobs:
check_yaml_consistency:
name: 'Check YAML consistency'
Expand Down Expand Up @@ -48,4 +51,4 @@ jobs:
uses: 'actions/checkout@v4'
- id: 'step-2'
name: 'Check Action Typing'
uses: 'typesafegithub/github-actions-typing@v1'
uses: 'typesafegithub/github-actions-typing@v2'
66 changes: 66 additions & 0 deletions .github/workflows/check-all-workflow-yaml-consistency.main.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#!/usr/bin/env kotlin

/*
* Copyright 2020-2025 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:Import("workflow-with-copyright.main.kts")

@file:Repository("https://repo.maven.apache.org/maven2/")
// work-around for https://youtrack.jetbrains.com/issue/KT-69145
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.2.0")

@file:Repository("https://bindings.krzeminski.it/")
@file:DependsOn("actions:checkout:v4")

import io.github.typesafegithub.workflows.actions.actions.Checkout
import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest
import io.github.typesafegithub.workflows.domain.triggers.PullRequest
import io.github.typesafegithub.workflows.domain.triggers.Push

workflowWithCopyright(
name = "Check all Workflow YAML Consistency",
on = listOf(
Push(),
PullRequest()
),
sourceFile = __FILE__
) {
job(
id = "check_all_workflow_yaml_consistency",
name = "Check all Workflow YAML Consistency",
runsOn = UbuntuLatest
) {
run(
name = "Configure Git",
command = "git config --global core.autocrlf input"
)
uses(
name = "Checkout",
action = Checkout()
)
run(
name = "Regenerate all Workflow YAMLs",
command = """find .github/workflows -mindepth 1 -maxdepth 1 -name '*.main.kts' -exec {} \;"""
)
run(
name = "Check for Modifications",
command = """
git add --intent-to-add .
git diff --exit-code
""".trimIndent()
)
}
}
59 changes: 59 additions & 0 deletions .github/workflows/check-all-workflow-yaml-consistency.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Copyright 2020-2025 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-all-workflow-yaml-consistency.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/typesafegithub/github-workflows-kt

name: 'Check all Workflow YAML Consistency'
on:
push: {}
pull_request: {}
concurrency:
group: '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}'
cancel-in-progress: true
jobs:
check_yaml_consistency:
name: 'Check YAML consistency'
runs-on: 'ubuntu-latest'
steps:
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v4'
- id: 'step-1'
name: 'Execute script'
run: 'rm ''.github/workflows/check-all-workflow-yaml-consistency.yaml'' && ''.github/workflows/check-all-workflow-yaml-consistency.main.kts'''
- id: 'step-2'
name: 'Consistency check'
run: 'git diff --exit-code ''.github/workflows/check-all-workflow-yaml-consistency.yaml'''
check_all_workflow_yaml_consistency:
name: 'Check all Workflow YAML Consistency'
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@v4'
- id: 'step-2'
name: 'Regenerate all Workflow YAMLs'
run: 'find .github/workflows -mindepth 1 -maxdepth 1 -name ''*.main.kts'' -exec {} \;'
- id: 'step-3'
name: 'Check for Modifications'
run: |-
git add --intent-to-add .
git diff --exit-code
7 changes: 6 additions & 1 deletion .github/workflows/check-dependency-versions.main.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env kotlin

/*
* Copyright 2020-2024 Björn Kautler
* Copyright 2020-2025 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.
Expand All @@ -17,6 +17,11 @@
*/

@file:Import("workflow-with-copyright.main.kts")

@file:Repository("https://repo.maven.apache.org/maven2/")
// work-around for https://youtrack.jetbrains.com/issue/KT-69145
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.2.0")

@file:Repository("https://bindings.krzeminski.it/")
@file:DependsOn("actions:checkout:v4")
@file:DependsOn("actions:setup-java:v4")
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/check-dependency-versions.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020-2024 Björn Kautler
# Copyright 2020-2025 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.
Expand All @@ -20,6 +20,9 @@ name: 'Check Dependency Versions'
on:
schedule:
- cron: '0 0 * * FRI'
concurrency:
group: '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}'
cancel-in-progress: true
jobs:
check_yaml_consistency:
name: 'Check YAML consistency'
Expand Down
Loading

0 comments on commit 79d85ea

Please sign in to comment.