Skip to content

Commit f2a48b5

Browse files
author
xlui
committed
Update README
1 parent c90ba04 commit f2a48b5

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

README.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/checkout@v2
2323

2424
- name: 2. Run maven test
25-
uses: xlui/action-maven-cli
25+
uses: xlui/action-maven-cli@master
2626
with:
2727
lifecycle: 'clean package test'
2828
```
@@ -45,6 +45,36 @@ echo "==========Finished Maven Commands=========="
4545

4646
Have you noticed the conversion?
4747

48+
## How to work with OpenJDK 8 or OpenJDK 15
49+
50+
By default the highest OpenJDK version supported is 11. And If you want to work with OpenJDK 8 or OpenJDK 15, just change the branch of this repo.
51+
52+
For OpenJDK 8:
53+
54+
```yml
55+
uses: xlui/action-maven-cli@jdk8
56+
```
57+
58+
For OpenJDK 11(alternative `master`):
59+
60+
```yml
61+
uses: xlui/action-maven-cli@jdk11
62+
```
63+
64+
For OpenJDK 14:
65+
66+
```yml
67+
uses: xlui/action-maven-cli@jdk14
68+
```
69+
70+
For OpenJDK 15:
71+
72+
```yml
73+
uses: xlui/action-maven-cli@jdk15
74+
```
75+
76+
Note that OpenJDK 15 is not a LTS release, the branch `jdk15` will be deleted when the [upstream](https://hub.docker.com/_/maven) is deleted.
77+
4878
## License
4979

5080
The Dockerfile and associated scripts and documentation in this project are released under the [MIT License](LICENSE.md).

0 commit comments

Comments
 (0)