Skip to content

Commit

Permalink
[Gradle Release Plugin] - pre tag commit: 'v2.0.1'.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed Feb 17, 2023
2 parents 9cf1811 + 5a56cf5 commit 188b420
Show file tree
Hide file tree
Showing 78 changed files with 35,361 additions and 131,169 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-action-typing.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@file:Import("workflow-with-copyright.main.kts")

import it.krzeminski.githubactions.actions.actions.CheckoutV3
import it.krzeminski.githubactions.actions.krzema12.GithubActionsTypingV0
import it.krzeminski.githubactions.actions.krzema12.GithubActionsTypingV1
import it.krzeminski.githubactions.domain.RunnerType.UbuntuLatest
import it.krzeminski.githubactions.domain.triggers.PullRequest
import it.krzeminski.githubactions.domain.triggers.Push
Expand Down Expand Up @@ -47,7 +47,7 @@ workflowWithCopyright(
)
uses(
name = "Check Action Typing",
action = GithubActionsTypingV0()
action = GithubActionsTypingV1()
)
}
}
12 changes: 3 additions & 9 deletions .github/workflows/check-action-typing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,16 @@ on:
pull_request: {}
jobs:
check_yaml_consistency:
name: 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
- id: step-2
name: Consistency check
run: git diff --exit-code '.github/workflows/check-action-typing.yaml'
check_action_typing:
Expand All @@ -54,4 +48,4 @@ jobs:
uses: actions/checkout@v3
- id: step-2
name: Check Action Typing
uses: krzema12/github-actions-typing@v0
uses: krzema12/github-actions-typing@v1
29 changes: 16 additions & 13 deletions .github/workflows/check-dependency-versions.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@

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

import it.krzeminski.githubactions.actions.CustomAction
import it.krzeminski.githubactions.actions.actions.CheckoutV2
import it.krzeminski.githubactions.actions.actions.CheckoutV3
import it.krzeminski.githubactions.actions.actions.SetupJavaV3
import it.krzeminski.githubactions.actions.actions.SetupJavaV3.Distribution.Temurin
import it.krzeminski.githubactions.actions.burrunan.GradleCacheActionV1
import it.krzeminski.githubactions.domain.RunnerType.WindowsLatest
import it.krzeminski.githubactions.domain.triggers.Cron
import it.krzeminski.githubactions.domain.triggers.Schedule
Expand Down Expand Up @@ -52,20 +54,21 @@ workflowWithCopyright(
)
uses(
name = "Checkout",
action = CheckoutV2()
action = CheckoutV3()
)
uses(
name = "Setup Java 11",
action = SetupJavaV3(
javaVersion = "11",
distribution = Temurin
)
)
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"
)
action = GradleCacheActionV1(
arguments = listOf("--show-version", "dependencyUpdates"),
debug = false,
concurrent = true
)
)
}
Expand Down
23 changes: 12 additions & 11 deletions .github/workflows/check-dependency-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,16 @@ on:
- cron: 0 0 * * 5
jobs:
check_yaml_consistency:
name: 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
- id: step-2
name: Consistency check
run: git diff --exit-code '.github/workflows/check-dependency-versions.yaml'
check_dependency_versions:
Expand All @@ -51,12 +45,19 @@ jobs:
run: git config --global core.autocrlf input
- id: step-1
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- id: step-2
name: Setup Java 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
- id: step-3
name: Check Dependency Versions
uses: burrunan/gradle-cache-action@v1
with:
arguments: dependencyUpdates
debug: false
concurrent: true
gradle-dependencies-cache-key: buildSrc/**/Versions.kt
arguments: |-
--show-version
dependencyUpdates

0 comments on commit 188b420

Please sign in to comment.