From 0b541c6c85e1bef4b4d06aa2ddce39526ffc60f2 Mon Sep 17 00:00:00 2001 From: soul-walker Date: Fri, 22 Mar 2024 15:20:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9maven=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E5=8F=8A=E7=89=88=E6=9C=AC=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 2 +- action.yml | 5 +++-- dist/index.js | Bin 3352564 -> 3352556 bytes src/installer.ts | 4 +++- 4 files changed, 7 insertions(+), 4 deletions(-) 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 3d3a6ef23d31a34629403e32d089777c5f7da439..3aefb552889c9619db0cea10e1c4390281886d03 100644 GIT binary patch delta 208 zcmexz{tV+AAZ}=3Y+-6)ZeeL*ZDDI+Z{cX+Y~gC*ZsBR+ZQ*O-ZxLt_Y!PY^ZV_n_ zZ4qk`Z;@z`Y>{e_Zjot`ZINq{Z&7GbY*A`aZc%AbZBc7cZ_#Mc+@dvkyH#?2UU7+n zQ(|#yXi<)Wt%7<+Nl8JmmA-yfeq~N(UbbFxPHB>UL1|J>X0mQtW=?9cer{q}YM#FO r^oiTG!njnbp?YiEO?PMku{IFv0I@C*>jAMo5E}ro;dav{e_Zjot`ZINq{Z&7GbY*A`aZc%AbZBc7cZ_#Mc+@dvk`}FhMwL<(d zN=gcft@QPaQVa6+audr^^Yju65|cAh_413-^}zy0`XDAm6e0rU=z^v7RjSKUi;6Sz j^J?|mb$4h1u{IFv0I@C*>j5!H+yICTx9jdO+Mf>q;Ji=T 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 {