mirror of
https://github.com/actions/setup-java.git
synced 2026-08-30 12:33:43 +01:00
Handle legacy OpenJDK URL layout
This commit is contained in:
committed by
GitHub
parent
2c4a2dda70
commit
cb48866ec3
@@ -126,7 +126,7 @@ export class OpenJdkDistribution extends JavaBase {
|
||||
|
||||
return Array.from(html.matchAll(pattern), match => {
|
||||
const url = match[1];
|
||||
const build = url.match(/\/(\d+)\/GPL\/openjdk-/)?.[1];
|
||||
const build = url.match(/\/(\d+)\/(?:GPL\/)?openjdk-/)?.[1];
|
||||
return {
|
||||
version: this.toSemver(match[2], build),
|
||||
url
|
||||
|
||||
Reference in New Issue
Block a user