6 Commits
v4 ... v4.2

Author SHA1 Message Date
stCarolas
7060d72b50 Update README with new version 2021-09-08 15:21:21 +03:00
stCarolas
5f0391e280 Merge pull request #15 from sta-szek/patch-1
Update maven to latest version
2021-09-08 15:20:30 +03:00
Piotr Joński
eed613a1e5 Update maven to latest version 2021-08-31 14:19:54 +02:00
stCarolas
3c9ddfb1c6 Merge pull request #9 from joewitt/master
Ensures the proper dynamically constructed Apache mirror download is …
2021-04-10 14:43:28 +03:00
Joe Witt
25f7163d53 Ensures the proper dynamically constructed Apache mirror download is used instead of apache archive server which would cap/block at a certain download capacity 2021-04-09 09:19:11 -07:00
stCarolas
d55bf2a4b0 Update README.md 2020-11-20 21:17:16 +03:00
3 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ Add this step into workflow
```
- name: Set up Maven
uses: stCarolas/setup-maven@v3
uses: stCarolas/setup-maven@v4.2
with:
maven-version: 3.5.4
maven-version: 3.8.2
```

View File

@@ -4,7 +4,7 @@ author: 'stCarolas'
inputs:
maven-version:
description: 'Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0'
default: '3.5.4'
default: '3.8.2'
runs:
using: 'node12'
main: 'lib/setup-maven.js'

View File

@@ -34,7 +34,7 @@ export async function getMaven(version: string) {
async function downloadMaven(version: string): Promise<string> {
const toolDirectoryName = `apache-maven-${version}`
const downloadUrl =
`https://archive.apache.org/dist/maven/maven-3/${version}/binaries/${toolDirectoryName}-bin.tar.gz`
`https://apache.org/dyn/closer.cgi?filename=maven/maven-3/${version}/binaries/${toolDirectoryName}-bin.tar.gz&action=download`
console.log(`downloading ${downloadUrl}`)
try {