-
Notifications
You must be signed in to change notification settings - Fork 14
Updating
This action needs to be updated regularly.
Updates includes .java source programs, a .properties file and also a couple .yml configuration files.
Updates to the jdk.java.net-uri.properties are automated via the jdk.java.net-uri-update.yml workflow.
Example commit: https://github.com/oracle-actions/setup-java/commit/155c7e556815196c3131aa35c56caedd0c912052
Manual updates are not needed here.
Generally after changes have been applied to the top-level list of projects published at https://jdk.java.net/ this action needs an update in src/ListOpenJavaDevelopmentKits.java's Page configuration section.
Example commit: https://github.com/oracle-actions/setup-java/commit/d7519e4b78ec47fbf3514c6878443b21b89e8dbf
/** List of pages to visit and parse for JDK archives. */
static final List<Page> PAGES =
List.of(
// JDK: General-Availability Release
Page.of("26") // https://jdk.java.net/26
.withAlias("26,latest")
.withAlias("ga,latest"),
// JDK: Early-Access Releases (latest)
Page.of("28") // https://jdk.java.net/28
.withAlias("28,latest")
.withAlias("ea,latest"),
// JDK: Early-Access Releases (stable)
Page.of("27") // https://jdk.java.net/27
.withAlias("27,latest")
.withAlias("ea,stable"),
// Named projects, usually in Early-Access phase
Page.of("jextract") // https://jdk.java.net/jextract
.withAlias("jextract,latest")
.withAlias("jextract,ea"),
// ...Mind the strategy for latest amd stable Early-Access builds as defined in https://github.com/oracle-actions/setup-java#examples-for-jdkjavanet
Don't forget to update related cases in test/Test.java.
An update in the page configuration of the ListOpenJavaDevelopmentKits.java program usually warrants a release of the action. See Releasing for details.
Changes to external actions usually requires an update in this composed action action.yml and its workflows.
Example commit: https://github.com/oracle-actions/setup-java/commit/eedf35330471b5bba11ea2c22047f42a141182a5
Start a Codespace and let "actions-up" do its work: https://github.com/marketplace/actions/actions-up
@user β /workspaces/setup-java (main) $ npx actions-up
π Actions Up!
β Found 17 actions in 9 workflows and 1 composite actions
β Found 11 updates available
β Choose which actions to update (Press <space> to select, <a> to toggle all, <i> to invert selection) Β· 11 actions selected
π Updating 11 selected actions...
β Updates applied successfully!