File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,18 +16,18 @@ See [action.yml](action.yml)
1616Basic:
1717``` yaml
1818steps :
19- - uses : actions/checkout@latest
19+ - uses : actions/checkout@v1
2020- uses : actions/setup-java@v1
2121 with :
22- java-version : ' 9.0.4' // The JDK version to make available on the path. Takes a whole or semver Jdk version, or 1.x syntax (e.g. 1.8 => Jdk 8.x)
22+ java-version : ' 9.0.4' // The JDK version to make available on the path. Takes a whole or semver JDK version, or 1.x syntax (e.g. 1.8 => JDK 8.x)
2323 architecture : x64 // (x64 or x86) - defaults to x64
2424- run : java -cp java HelloWorldApp
2525` ` `
2626
2727From local file:
2828` ` ` yaml
2929steps :
30- - uses : actions/checkout@master
30+ - uses : actions/checkout@v1
3131- uses : actions/setup-java@v1
3232 with :
3333 java-version : ' 4.0.0'
Original file line number Diff line number Diff line change 1- name : ' Setup Java environment '
2- description : ' Setup your runner with Java'
1+ name : ' Setup Java JDK '
2+ description : ' Set up a specific version of the Java JDK and add the command-line tools to the PATH '
33author : ' GitHub'
44inputs :
55 java-version :
6- description : ' The JDK version to make available on the path. Takes a whole or semver Jdk version, or 1.x syntax (e.g. 1.8 => Jdk 8.x)'
6+ description : ' The JDK version to make available on the path. Takes a whole or semver JDK version, or 1.x syntax (e.g. 1.8 => JDK 8.x)'
77 required : true
88 architecture :
99 description : ' The architecture (x86, x64) of the JDK.'
You can’t perform that action at this time.
0 commit comments