mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 18:06:45 +00:00
fix lint issues
This commit is contained in:
parent
e5c6ca31f3
commit
079229f185
4 changed files with 12 additions and 2 deletions
|
@ -9,7 +9,7 @@ inputs:
|
||||||
Early access versions can be specified in the form of e.g. 14-ea,
|
Early access versions can be specified in the form of e.g. 14-ea,
|
||||||
14.0.0-ea, or 14.0.0-ea.28'
|
14.0.0-ea, or 14.0.0-ea.28'
|
||||||
required: true
|
required: true
|
||||||
vendor:
|
distro:
|
||||||
description: 'The vendor to fetch the binary from (adoptopenjdk, zulu).
|
description: 'The vendor to fetch the binary from (adoptopenjdk, zulu).
|
||||||
Defaults to adoptopenjdk'
|
Defaults to adoptopenjdk'
|
||||||
required: false
|
required: false
|
||||||
|
|
|
@ -5,9 +5,15 @@
|
||||||
"description": "setup java action",
|
"description": "setup java action",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
<<<<<<< HEAD
|
||||||
"build": "ncc build -o dist/setup src/setup-java.ts && ncc build -o dist/cleanup src/cleanup-java.ts",
|
"build": "ncc build -o dist/setup src/setup-java.ts && ncc build -o dist/cleanup src/cleanup-java.ts",
|
||||||
"format": "prettier --write **/*.ts",
|
"format": "prettier --write **/*.ts",
|
||||||
"format-check": "prettier --check **/*.ts",
|
"format-check": "prettier --check **/*.ts",
|
||||||
|
=======
|
||||||
|
"build": "ncc build src/setup-java.ts",
|
||||||
|
"format": "prettier --write **/*.ts src/distro/*.ts",
|
||||||
|
"format-check": "prettier --check **/*.ts src/distro/*.ts",
|
||||||
|
>>>>>>> fix lint issues
|
||||||
"prerelease": "npm run-script build",
|
"prerelease": "npm run-script build",
|
||||||
"release": "git add -f dist/setup/index.js dist/cleanup/index.js",
|
"release": "git add -f dist/setup/index.js dist/cleanup/index.js",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
|
|
|
@ -11,6 +11,7 @@ async function run() {
|
||||||
if (!version) {
|
if (!version) {
|
||||||
version = core.getInput(constants.INPUT_JAVA_VERSION, {required: true});
|
version = core.getInput(constants.INPUT_JAVA_VERSION, {required: true});
|
||||||
}
|
}
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
const vendor = core.getInput('vendor', {required: true});
|
const vendor = core.getInput('vendor', {required: true});
|
||||||
const arch = core.getInput(constants.INPUT_ARCHITECTURE, {required: true});
|
const arch = core.getInput(constants.INPUT_ARCHITECTURE, {required: true});
|
||||||
|
@ -20,6 +21,9 @@ async function run() {
|
||||||
const jdkFile = core.getInput(constants.INPUT_JDK_FILE, {required: false});
|
const jdkFile = core.getInput(constants.INPUT_JDK_FILE, {required: false});
|
||||||
=======
|
=======
|
||||||
const distro = core.getInput('vendor', {required: true});
|
const distro = core.getInput('vendor', {required: true});
|
||||||
|
=======
|
||||||
|
const distro = core.getInput('distro', {required: true});
|
||||||
|
>>>>>>> fix lint issues
|
||||||
const arch = core.getInput('architecture', {required: true});
|
const arch = core.getInput('architecture', {required: true});
|
||||||
const javaPackage = core.getInput('java-package', {required: true});
|
const javaPackage = core.getInput('java-package', {required: true});
|
||||||
const jdkFile = core.getInput('jdkFile', {required: false}) || '';
|
const jdkFile = core.getInput('jdkFile', {required: false}) || '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue