Skip to content

Commit a972d14

Browse files
author
xlui
committed
Revert "Use global shell script"
This reverts commit 2702c6b.
1 parent 2702c6b commit a972d14

File tree

4 files changed

+62
-3
lines changed

4 files changed

+62
-3
lines changed

jdk11/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ LABEL "com.github.actions.name"="GitHub Action for Maven & JDK 11"
88
LABEL "com.github.actions.description"="Provide maven cli for JDK 11 projects."
99
LABEL "com.github.actions.icon"="package"
1010
LABEL "com.github.actions.color"="green"
11-
COPY ../LICENSE ../README.md /
11+
COPY LICENSE README.md /
1212

13-
COPY ../entrypoint.sh /entrypoint.sh
13+
COPY entrypoint.sh /entrypoint.sh
1414

15-
ENTRYPOINT ["/entrypoint.sh"]
15+
ENTRYPOINT ["/entrypoint.sh"]

jdk11/LICENSE

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
MIT License
2+
3+
Copyright (c) 2019 xlui
4+
5+
Copyright (c) 2018 Luca Feger
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.

jdk11/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# GitHub Action for the Maven CLI with JDK 11
2+
3+
The GitHub Action for [Maven](https://maven.apache.org/) wraps the Maven CLI with JDK 11 to enable Maven commands to be run. This can be used to run every Maven Command.
4+
5+
## Usage
6+
7+
The normalised usage or this GitHub Action is the following code:
8+
9+
```
10+
action "package" {
11+
uses = "xlui/action-maven-cli/jdk11@master"
12+
args = "clean package"
13+
}
14+
```
15+
16+
But in order to keep forward-compatibility, you can also use this GitHub Action in the following way:
17+
18+
```
19+
action "package" {
20+
uses = "xlui/action-maven-cli@master"
21+
args = "clean package"
22+
}
23+
```
24+
25+
## License
26+
27+
The Dockerfile and associated scripts and documentation in this project are released under the [MIT License](LICENSE.md).

jdk11/entrypoint.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh -l
2+
3+
set -e
4+
5+
echo "==========Starting Maven Commands=========="
6+
7+
sh -c "mvn $1"
8+
9+
echo "==========Finished Maven Commands=========="

0 commit comments

Comments
 (0)