mirror of
https://github.com/s4u/maven-settings-action.git
synced 2026-02-16 00:00:27 +08:00
Merge remote-tracking branch 'origin/master' into releases/v2
This commit is contained in:
14
.github/dependabot.yml
vendored
Normal file
14
.github/dependabot.yml
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: npm
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: daily
|
||||
time: '09:09'
|
||||
open-pull-requests-limit: 10
|
||||
- package-ecosystem: github-actions
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: daily
|
||||
time: '09:09'
|
||||
open-pull-requests-limit: 10
|
||||
11
.github/workflows/audit.yml
vendored
11
.github/workflows/audit.yml
vendored
@ -1,14 +1,15 @@
|
||||
name: "Audit"
|
||||
name: Audit
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches-ignore:
|
||||
- 'dependabot/*'
|
||||
- 'dependabot/**'
|
||||
schedule:
|
||||
- cron: '09 22 * * *'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
audit:
|
||||
name: Audit
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||
@ -16,9 +17,9 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2.3.2
|
||||
|
||||
- uses: actions/setup-node@v1
|
||||
- uses: actions/setup-node@v2.1.1
|
||||
with:
|
||||
node-version: '12.x'
|
||||
|
||||
|
||||
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@ -1,14 +1,15 @@
|
||||
name: "Test"
|
||||
name: Test
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches-ignore:
|
||||
- 'dependabot/*'
|
||||
- 'dependabot/**'
|
||||
schedule:
|
||||
- cron: '22 22 * * 5'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||
@ -16,9 +17,9 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2.3.2
|
||||
|
||||
- uses: actions/setup-node@v1
|
||||
- uses: actions/setup-node@v2.1.1
|
||||
with:
|
||||
node-version: '12.x'
|
||||
|
||||
|
||||
14
README.md
14
README.md
@ -28,13 +28,13 @@ See [action.yml](action.yml)
|
||||
Create default ```settings.xml```:
|
||||
```yml
|
||||
steps:
|
||||
- uses: s4u/maven-settings-action@v2.1.0
|
||||
- uses: s4u/maven-settings-action@v2.1.1
|
||||
```
|
||||
|
||||
Create ```settings.xml``` with servers section:
|
||||
```yml
|
||||
steps:
|
||||
- uses: s4u/maven-settings-action@v2.1.0
|
||||
- uses: s4u/maven-settings-action@v2.1.1
|
||||
with:
|
||||
servers: '[{"id": "serverId", "username": "username", "password": "password"}]'
|
||||
```
|
||||
@ -42,7 +42,7 @@ steps:
|
||||
Create ```settings.xml``` with mirrors section:
|
||||
```yml
|
||||
steps:
|
||||
- uses: s4u/maven-settings-action@v2.1.0
|
||||
- uses: s4u/maven-settings-action@v2.1.1
|
||||
with:
|
||||
mirrors: '[{"id": "mirrorId", "name": "mirrorName", "mirrorOf": "mirrorOf", "url": "mirrorUrl"}]'
|
||||
```
|
||||
@ -50,7 +50,7 @@ steps:
|
||||
Create ```settings.xml``` with maven properties:
|
||||
```yml
|
||||
steps:
|
||||
- uses: s4u/maven-settings-action@v2.1.0
|
||||
- uses: s4u/maven-settings-action@v2.1.1
|
||||
with:
|
||||
properties: '[{"propertyName1": "propertyValue1"}, {"propertyName2": "propertyValue2"}]'
|
||||
```
|
||||
@ -58,7 +58,7 @@ steps:
|
||||
Create ```settings.xml``` with https://oss.sonatype.org/content/repositories/snapshots in repository list
|
||||
```yml
|
||||
steps:
|
||||
- uses: s4u/maven-settings-action@v2.1.0
|
||||
- uses: s4u/maven-settings-action@v2.1.1
|
||||
with:
|
||||
sonatypeSnapshots: true
|
||||
```
|
||||
@ -66,7 +66,7 @@ steps:
|
||||
Do not override existing ```settings.xml```, from version 2.0 file is override by default :
|
||||
```yml
|
||||
steps:
|
||||
- uses: s4u/maven-settings-action@v2.1.0
|
||||
- uses: s4u/maven-settings-action@v2.1.1
|
||||
with:
|
||||
override: false
|
||||
```
|
||||
@ -74,7 +74,7 @@ steps:
|
||||
Do not add github to server in ```settings.xml```, by default is added:
|
||||
```yml
|
||||
steps:
|
||||
- uses: s4u/maven-settings-action@v2.1.0
|
||||
- uses: s4u/maven-settings-action@v2.1.1
|
||||
with:
|
||||
githubServer: false
|
||||
```
|
||||
|
||||
2600
package-lock.json
generated
2600
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -24,12 +24,12 @@
|
||||
},
|
||||
"homepage": "https://github.com/s4u/maven-settings-action#readme",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.2.3",
|
||||
"@actions/core": "^1.2.5",
|
||||
"xmldom": "^0.3.0",
|
||||
"xpath": "0.0.27"
|
||||
"xpath": "0.0.29"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^6.8.0",
|
||||
"jest": "^25.2.7"
|
||||
"eslint": "^7.8.1",
|
||||
"jest": "^26.4.2"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user