mirror of
https://github.com/actions/setup-java.git
synced 2026-08-18 11:42:51 +00:00
Fix SapMachine early-access filtering (#1217)
* Fix SapMachine early-access filtering Ensure SapMachine EA requests exclude stable releases and cover string and boolean release metadata with competing fixture candidates.\n\nCo-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * Update distribution bundle Regenerate the setup bundle for SapMachine release-class filtering.\n\nCo-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * Format SapMachine regression tests Apply the repository Prettier format to the focused test additions.\n\nCo-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Bruno Borges <brborges@microsoft.com>
This commit is contained in:
co-authored by
Bruno Borges
parent
4fbd0bd19d
commit
5580b78434
@@ -175,8 +175,9 @@ export class SapMachineDistribution extends JavaBase {
|
||||
continue;
|
||||
}
|
||||
|
||||
// skip earlyAccessVersions if stable version requested
|
||||
if (this.stable && buildVersionMap.ea === 'true') {
|
||||
const isEarlyAccess =
|
||||
buildVersionMap.ea === true || buildVersionMap.ea === 'true';
|
||||
if (this.stable === isEarlyAccess) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ export interface ISapMachineAllVersions {
|
||||
[full_version: string]: {
|
||||
[sapmachineBuild: string]: {
|
||||
release_url: string;
|
||||
ea: string;
|
||||
ea: boolean | string;
|
||||
assets: {
|
||||
[packageType: string]: {
|
||||
[arch: string]: {
|
||||
|
||||
Reference in New Issue
Block a user