mirror of
https://github.com/s4u/setup-maven-action.git
synced 2026-02-12 00:05:30 +08:00
feat(settings): 🔐 Add settings-githubServer flag
This maps to the maven-settings-action 'githubServer' flag. closes #101
This commit is contained in:
committed by
Slawomir Jaranowski
parent
f4785d5b29
commit
68896192ef
@ -21,7 +21,7 @@ For default values you only need:
|
||||
|
||||
- run: mvn -V ...
|
||||
```
|
||||
|
||||
|
||||
# Params mapping for sub actions
|
||||
|
||||
## checkout
|
||||
@ -64,7 +64,7 @@ So we can use for action:
|
||||
| params | description |
|
||||
|----------------|----------------------------------------------------------|
|
||||
| cache-enabled | enable cache. Default true |
|
||||
| cache-path | default cache path for Maven with value ~/.m2/repository |
|
||||
| cache-path | default cache path for Maven with value ~/.m2/repository |
|
||||
| cache-path-add | additional value for cache path |
|
||||
| cache-prefix | prefix value for `key` and `restore-keys` cache params |
|
||||
|
||||
@ -85,6 +85,7 @@ So we can use for action:
|
||||
| settings-sonatypeSnapshots | sonatypeSnapshots |
|
||||
| settings-proxies | proxies |
|
||||
| settings-repositories | repositories |
|
||||
| settings-githubServer | githubServer |
|
||||
|
||||
# Testing against different Maven versions
|
||||
|
||||
|
||||
@ -110,6 +110,11 @@ inputs:
|
||||
description: 'repository settings definition in json array, e.g.: [ { "id": "repoId","name": "repoName","url": "url","snapshots": { "enabled": true } } ]'
|
||||
required: false
|
||||
|
||||
settings-githubServer:
|
||||
description: 'add to settings.xml servers server-id: github; username=$GITHUB_ACTOR and password=$GITHUB_TOKEN'
|
||||
default: "true"
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
|
||||
@ -160,3 +165,4 @@ runs:
|
||||
sonatypeSnapshots: '${{ inputs.settings-sonatypeSnapshots }}'
|
||||
proxies: '${{ inputs.settings-proxies }}'
|
||||
repositories: '${{ inputs.settings-repositories }}'
|
||||
githubServer: '${{ inputs.settings-githubServer }}'
|
||||
|
||||
Reference in New Issue
Block a user