feat(settings): 🔐 Add settings-githubServer flag

This maps to the maven-settings-action 'githubServer' flag.

closes #101
This commit is contained in:
Chris Poupart
2024-10-30 15:26:11 -04:00
committed by Slawomir Jaranowski
parent f4785d5b29
commit 68896192ef
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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 }}'