Skip to content

Commit 188b420

Browse files
committed
[Gradle Release Plugin] - pre tag commit: 'v2.0.1'.
2 parents 9cf1811 + 5a56cf5 commit 188b420

File tree

78 files changed

+35361
-131169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+35361
-131169
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
@file:Import("workflow-with-copyright.main.kts")
2020

2121
import it.krzeminski.githubactions.actions.actions.CheckoutV3
22-
import it.krzeminski.githubactions.actions.krzema12.GithubActionsTypingV0
22+
import it.krzeminski.githubactions.actions.krzema12.GithubActionsTypingV1
2323
import it.krzeminski.githubactions.domain.RunnerType.UbuntuLatest
2424
import it.krzeminski.githubactions.domain.triggers.PullRequest
2525
import it.krzeminski.githubactions.domain.triggers.Push
@@ -47,7 +47,7 @@ workflowWithCopyright(
4747
)
4848
uses(
4949
name = "Check Action Typing",
50-
action = GithubActionsTypingV0()
50+
action = GithubActionsTypingV1()
5151
)
5252
}
5353
}

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,16 @@ on:
2222
pull_request: {}
2323
jobs:
2424
check_yaml_consistency:
25+
name: Check YAML consistency
2526
runs-on: ubuntu-latest
2627
steps:
2728
- id: step-0
2829
name: Check out
2930
uses: actions/checkout@v3
3031
- id: step-1
31-
name: Set up Java in proper version
32-
uses: actions/setup-java@v3
33-
with:
34-
java-version: 17
35-
distribution: zulu
36-
cache: gradle
37-
- id: step-2
3832
name: Execute script
3933
run: rm '.github/workflows/check-action-typing.yaml' && '.github/workflows/check-action-typing.main.kts'
40-
- id: step-3
34+
- id: step-2
4135
name: Consistency check
4236
run: git diff --exit-code '.github/workflows/check-action-typing.yaml'
4337
check_action_typing:
@@ -54,4 +48,4 @@ jobs:
5448
uses: actions/checkout@v3
5549
- id: step-2
5650
name: Check Action Typing
57-
uses: krzema12/github-actions-typing@v0
51+
uses: krzema12/github-actions-typing@v1

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

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818

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

21-
import it.krzeminski.githubactions.actions.CustomAction
22-
import it.krzeminski.githubactions.actions.actions.CheckoutV2
21+
import it.krzeminski.githubactions.actions.actions.CheckoutV3
22+
import it.krzeminski.githubactions.actions.actions.SetupJavaV3
23+
import it.krzeminski.githubactions.actions.actions.SetupJavaV3.Distribution.Temurin
24+
import it.krzeminski.githubactions.actions.burrunan.GradleCacheActionV1
2325
import it.krzeminski.githubactions.domain.RunnerType.WindowsLatest
2426
import it.krzeminski.githubactions.domain.triggers.Cron
2527
import it.krzeminski.githubactions.domain.triggers.Schedule
@@ -52,20 +54,21 @@ workflowWithCopyright(
5254
)
5355
uses(
5456
name = "Checkout",
55-
action = CheckoutV2()
57+
action = CheckoutV3()
58+
)
59+
uses(
60+
name = "Setup Java 11",
61+
action = SetupJavaV3(
62+
javaVersion = "11",
63+
distribution = Temurin
64+
)
5665
)
5766
uses(
5867
name = "Check Dependency Versions",
59-
action = CustomAction(
60-
actionOwner = "burrunan",
61-
actionName = "gradle-cache-action",
62-
actionVersion = "v1",
63-
inputs = mapOf(
64-
"arguments" to "dependencyUpdates",
65-
"debug" to "false",
66-
"concurrent" to "true",
67-
"gradle-dependencies-cache-key" to "buildSrc/**/Versions.kt"
68-
)
68+
action = GradleCacheActionV1(
69+
arguments = listOf("--show-version", "dependencyUpdates"),
70+
debug = false,
71+
concurrent = true
6972
)
7073
)
7174
}

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

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,16 @@ on:
2222
- cron: 0 0 * * 5
2323
jobs:
2424
check_yaml_consistency:
25+
name: Check YAML consistency
2526
runs-on: ubuntu-latest
2627
steps:
2728
- id: step-0
2829
name: Check out
2930
uses: actions/checkout@v3
3031
- id: step-1
31-
name: Set up Java in proper version
32-
uses: actions/setup-java@v3
33-
with:
34-
java-version: 17
35-
distribution: zulu
36-
cache: gradle
37-
- id: step-2
3832
name: Execute script
3933
run: rm '.github/workflows/check-dependency-versions.yaml' && '.github/workflows/check-dependency-versions.main.kts'
40-
- id: step-3
34+
- id: step-2
4135
name: Consistency check
4236
run: git diff --exit-code '.github/workflows/check-dependency-versions.yaml'
4337
check_dependency_versions:
@@ -51,12 +45,19 @@ jobs:
5145
run: git config --global core.autocrlf input
5246
- id: step-1
5347
name: Checkout
54-
uses: actions/checkout@v2
48+
uses: actions/checkout@v3
5549
- id: step-2
50+
name: Setup Java 11
51+
uses: actions/setup-java@v3
52+
with:
53+
java-version: 11
54+
distribution: temurin
55+
- id: step-3
5656
name: Check Dependency Versions
5757
uses: burrunan/gradle-cache-action@v1
5858
with:
59-
arguments: dependencyUpdates
6059
debug: false
6160
concurrent: true
62-
gradle-dependencies-cache-key: buildSrc/**/Versions.kt
61+
arguments: |-
62+
--show-version
63+
dependencyUpdates

0 commit comments

Comments
 (0)