Skip to content

Commit

Permalink
Fix for SDKMan config, and temporarily disabling (#2019)
Browse files Browse the repository at this point in the history
* Fix for SDKMan config, and temporarily disabling

* updating CHANGELOG
  • Loading branch information
shashachu committed May 12, 2023
1 parent a28e8b9 commit 432f609
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
download-url: https://github.com/pinterest/ktlint/releases/download/${{ env.version }}/ktlint-${{ env.version }}.zip

- name: Release to sdkman
if: ${{ success() }}
if: false
env:
SDKMAN_KEY: ${{ secrets.SDKMAN_KEY }}
SDKMAN_TOKEN: ${{ secrets.SDKMAN_TOKEN }}
Expand Down
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ This project adheres to [Semantic Versioning](https://semver.org/).

### Added

* `ktlint` is now available on SDKMAN!

### Removed

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion ktlint-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ tasks.withType<Test>().configureEach {
}

sdkman {
val sdkmanVersion = providers.environmentVariable("SDKMAN_KEY").orElse(project.version.toString())
val sdkmanVersion = providers.environmentVariable("SDKMAN_VERSION").orElse(project.version.toString())
candidate.set("ktlint")
version.set(sdkmanVersion)
url.set("https://github.com/pinterest/ktlint/releases/download/$sdkmanVersion/ktlint-$sdkmanVersion.zip")
Expand Down

0 comments on commit 432f609

Please sign in to comment.