Skip to content

Add set-default option#1017

Open
gsmet wants to merge 1 commit into
actions:mainfrom
gsmet:set-default
Open

Add set-default option#1017
gsmet wants to merge 1 commit into
actions:mainfrom
gsmet:set-default

Conversation

@gsmet

@gsmet gsmet commented Jun 12, 2026

Copy link
Copy Markdown

Description:

Add a set-default option allowing to install an additional JDK without making it the default one.

I have wanted this for quite a long time as I'm running custom GitHub Actions with Java, which might require a specific JDK and I don't want to pollute the JDK that is used by the overall workflow calling the action.
And I'm apparently not alone as there was a preexisting issue.

Related issue:

Fixes #560

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

This option allows to install an additional JDK without making it the
default one.

I have wanted this for quite a long time as I'm running custom GitHub
Actions with Java, which might require a specific JDK and I don't want
to pollute the JDK that is used by the overall workflow calling the
action.
And I'm apparently not alone as there was a preexisting issue.

Fixes actions#560
@gsmet gsmet requested a review from a team as a code owner June 12, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Input property that would configure if the JDK should be configured as default or not

1 participant