-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Gradle Release Plugin] - pre tag commit: 'v1.3.5'.
- Loading branch information
Showing
25 changed files
with
3,665 additions
and
3,553 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.