修改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
|
id: test-action
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
maven-version: 3.8.2
|
maven-version: 3.8.8
|
||||||
|
|
||||||
- name: Check Output
|
- name: Check Output
|
||||||
id: output
|
id: output
|
||||||
|
@ -11,8 +11,9 @@ branding:
|
|||||||
inputs:
|
inputs:
|
||||||
maven-version:
|
maven-version:
|
||||||
description:
|
description:
|
||||||
'Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0'
|
'Version Spec of the version to use. Currently only supports: [3.8.8,
|
||||||
default: '3.8.2'
|
3.9.6]'
|
||||||
|
default: '3.8.8'
|
||||||
|
|
||||||
# Define your outputs here.
|
# Define your outputs here.
|
||||||
outputs:
|
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)
|
core.addPath(toolPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const BaseUrl = 'https://joylink.club/public-files/maven/'
|
||||||
|
|
||||||
async function downloadMaven(
|
async function downloadMaven(
|
||||||
version: string,
|
version: string,
|
||||||
toolDirectoryName: string
|
toolDirectoryName: string
|
||||||
): Promise<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}`)
|
core.info(`downloading from ${downloadUrl}`)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user