From 68896192ef0860b64e36a13d6f9d4d4bca0aa6e6 Mon Sep 17 00:00:00 2001 From: Chris Poupart Date: Wed, 30 Oct 2024 15:26:11 -0400 Subject: [PATCH] =?UTF-8?q?feat(settings):=20=F0=9F=94=90=20Add=20settings?= =?UTF-8?q?-githubServer=20flag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This maps to the maven-settings-action 'githubServer' flag. closes #101 --- README.md | 5 +++-- action.yml | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4e40df3..2504efd 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/action.yml b/action.yml index 22c92da..4fe180d 100644 --- a/action.yml +++ b/action.yml @@ -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 }}'