https://github.com/sdkman/sdkman-action
SDKMAN! GitHub Action
https://github.com/sdkman/sdkman-action
github-actions sdkman
Last synced: 5 months ago
JSON representation
SDKMAN! GitHub Action
- Host: GitHub
- URL: https://github.com/sdkman/sdkman-action
- Owner: sdkman
- Created: 2020-10-11T03:56:51.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-03-15T22:00:07.000Z (almost 2 years ago)
- Last Synced: 2025-07-01T23:37:17.089Z (6 months ago)
- Topics: github-actions, sdkman
- Homepage:
- Size: 15.6 KB
- Stars: 24
- Watchers: 5
- Forks: 8
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SDKMAN! action
This action installs any `candidate` via [sdkman](https://sdkman.io/). If inputs are provided then the
`sdk install ` command will be executed. Otherwise, the `sdk env install` command will be executed.
## Inputs
### `candidate`
**Optional** The name of the candidate to install.
### `version`
**Optional** The version of the candidate to install.
## Outputs
### `file`
Filename of the downloaded archive.
## Example usage
Install a specific candidate in using Windows runner:
```yaml
- uses: sdkman/sdkman-action@v1
id: sdkman
with:
candidate: java
version: 15.0.0-amzn
- uses: actions/setup-java@v3
id: setup-java
with:
distribution: 'jdkfile'
java-version: 15.0.0
jdkFile: ${{ steps.sdkman.outputs.file }}
- run: java -version
```
Install a specific candidate in Linux or macOS runner:
```yaml
- uses: sdkman/sdkman-action@v1
id: sdkman
with:
candidate: java
version: 15.0.0-amzn
- run: java -version
```
Install candidates from `.sdkmanrc` in Linux or macOS runner:
```yaml
- uses: sdkman/sdkman-action@v1
id: sdkman
- run: java -version
```