Add overwrite-settings to disable overwriting settings.xml

Closes #79
Refs joschi/setup-jdk#11
This commit is contained in:
Jochen Schalanda 2020-07-20 08:28:45 +02:00
parent d920b7da5f
commit 41b740659c
No known key found for this signature in database
GPG key ID: 2FC1B61A8D1F4BB0
6 changed files with 60 additions and 13 deletions

View file

@ -145,7 +145,9 @@ The two `settings.xml` files created from the above example look like the follow
</servers>
```
***NOTE: The `settings.xml` file is created in the Actions $HOME directory. If you have an existing `settings.xml` file at that location, it will be overwritten. See below for using the `settings-path` to change your `settings.xml` file location.***
***NOTE:*** The `settings.xml` file is created in the Actions $HOME directory. If you have an existing `settings.xml` file at that location, it will be overwritten. See below for using the `settings-path` to change your `settings.xml` file location.
If you don't want to overwrite the `settings.xml` file, you can set `overwrite-settings: false`.
See the help docs on [Publishing a Package](https://help.github.com/en/github/managing-packages-with-github-packages/configuring-apache-maven-for-use-with-github-packages#publishing-a-package) for more information on the `pom.xml` file.