diff --git a/.github/workflows/pr-compliance-check.yml b/.github/workflows/pr-compliance-check.yml index 6a62d5b2..0471dc55 100644 --- a/.github/workflows/pr-compliance-check.yml +++ b/.github/workflows/pr-compliance-check.yml @@ -49,6 +49,7 @@ jobs: ./gradlew --dry-run -q # download wrapper if needed export DETEKT_VERSION=$(./gradlew --console plain -q printDetektVersion) export KTLINT_VERSION=$(./gradlew --console plain -q printKtlintVersion) + mkdir -p ${HOME}/.local/bin ./scripts/install-format-tools.sh - name: 'Checkout PR' uses: actions/checkout@v4 diff --git a/build.gradle.kts b/build.gradle.kts index bcccbb03..f0308b58 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -31,9 +31,13 @@ nexusPublishing { } tasks.register("printKtlintVersion") { - println(libs.versions.ktlint.get()) + doLast { + println(libs.versions.ktlint.get()) + } } tasks.register("printDetektVersion") { - println(libs.versions.detekt.get()) + doLast { + println(libs.versions.detekt.get()) + } } \ No newline at end of file