You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ This action provides the following functionality for GitHub Actions runners:
20
20
Inputs `java-version` and `distribution` are mandatory. See [Supported distributions](../README.md#Supported-distributions) section for a list of available options.
21
21
22
22
### Basic
23
+
**Adopt OpenJDK**
23
24
```yaml
24
25
steps:
25
26
- uses: actions/checkout@v2
@@ -30,6 +31,17 @@ steps:
30
31
- run: java -cp java HelloWorldApp
31
32
```
32
33
34
+
**Zulu OpenJDK**
35
+
```yaml
36
+
steps:
37
+
- uses: actions/checkout@v2
38
+
- uses: actions/setup-java@v2-preview
39
+
with:
40
+
distribution: 'zulu'# See 'Supported distributions' for available options
41
+
java-version: '11'
42
+
- run: java -cp java HelloWorldApp
43
+
```
44
+
33
45
#### Supported version syntax
34
46
The `java-version` input supports an exact version or a version range using [SemVer](https://semver.org/) notation:
Copy file name to clipboardExpand all lines: docs/advanced-usage.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -206,7 +206,9 @@ The two `settings.xml` files created from the above example look like the follow
206
206
</settings>
207
207
```
208
208
209
-
***NOTE: The `settings.xml` file is created in the Actions $HOME/.m2 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.***
209
+
***NOTE***: The `settings.xml` file is created in the Actions $HOME/.m2 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.
210
+
211
+
If you don't want to overwrite the `settings.xml` file, you can set `overwrite-settings: false`
0 commit comments