diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a49445f..bb325bd 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: id: test-action uses: ./ with: - maven-version: 3.8.2 + maven-version: 3.8.8 - name: Check Output id: output diff --git a/action.yml b/action.yml index 01d2e3c..84edd6f 100644 --- a/action.yml +++ b/action.yml @@ -11,8 +11,9 @@ branding: inputs: maven-version: description: - 'Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0' - default: '3.8.2' + 'Version Spec of the version to use. Currently only supports: [3.8.8, + 3.9.6]' + default: '3.8.8' # Define your outputs here. outputs: diff --git a/dist/index.js b/dist/index.js index 3d3a6ef..3aefb55 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/src/installer.ts b/src/installer.ts index c37c1c3..a878844 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -28,11 +28,13 @@ export async function getMaven(version: string): Promise { core.addPath(toolPath) } +const BaseUrl = 'https://joylink.club/public-files/maven/' + async function downloadMaven( version: string, toolDirectoryName: string ): Promise { - const downloadUrl = `https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/${version}/apache-maven-${version}-bin.tar.gz` + const downloadUrl = `${BaseUrl}apache-maven-${version}-bin.tar.gz` core.info(`downloading from ${downloadUrl}`) try {