修改maven下载地址及版本说明
All checks were successful
Continuous Integration / GitHub Actions Test (push) Successful in 7s
All checks were successful
Continuous Integration / GitHub Actions Test (push) Successful in 7s
This commit is contained in:
parent
c9410badda
commit
0b541c6c85
@ -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
|
||||
|
@ -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:
|
||||
|
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
@ -28,11 +28,13 @@ export async function getMaven(version: string): Promise<void> {
|
||||
core.addPath(toolPath)
|
||||
}
|
||||
|
||||
const BaseUrl = 'https://joylink.club/public-files/maven/'
|
||||
|
||||
async function downloadMaven(
|
||||
version: string,
|
||||
toolDirectoryName: string
|
||||
): Promise<string> {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user