Skip to content

Commit

Permalink
Try creating directory inside the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
OptimumCode committed Jan 8, 2025
1 parent 9481407 commit 51c63c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr-compliance-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}

0 comments on commit 51c63c2

Please sign in to comment.